Forum

> > CS2D > Mods > Minecraft Mod
Forums overviewCS2D overview Mods overviewLog in to reply

English Minecraft Mod

25 replies
Page
To the start Previous 1 2 Next To the start

old Minecraft Mod

ExecL
User Off Offline

Quote
i need help with some things like...
1. i need a lua script
2. i need some images


i got the player image and the creeper one and the
zomble. but it would be nice if i could get more.

the lua script i need will go like this...

there will be a white bar hud bar at the bottem of the sceen with little squares in it. 10-squares and lets say theres a Entity on a map and its a breakable and if a player breaks that Entity a coloured square will go in the white bar and if its on the 1st square and he clicks f1 it gos in hes hand and if he clicks on the ground it puts a Entity-breakable there just like Minecraft so if someone could do that for me i would have a party


old Re: Minecraft Mod

Bowlinghead
User Off Offline

Quote
It would be very hard because there is no "id" parameter in the break hook!

I thought about that too but:
break hook has written
break(x,y)                              on breaking a breakable entity
-x: breakable x (tiles)
-y: breakable y (tiles)


Its not possible! Exept if you make it for "Singleplayer"!

old Re: Minecraft Mod

ExecL
User Off Offline

Quote
thats cool ill just make it a Singleplayer game can you make the script?

old Re: Minecraft Mod

Bowlinghead
User Off Offline

Quote
I'm tooo lazy for that!
btw there is no "placing a breakable" function. So you CANT make a breakable per lua.

old THANK YOU

ExecL
User Off Offline

Quote
thank you for trying it would have be cool if it worked
thank you

old Nothink to thanks!

Bowlinghead
User Off Offline

Quote
I tried it too.
But its not possible
Only a realy bad version.

You can...
Can collect wood (Of curse you can make more).
And you make Dyn-Wall. And they get activatet if you have 1 wood.
But 1 problem:
You cant destroy that house. It would be bad

old Re: Minecraft Mod

ExecL
User Off Offline

Quote
can i have that lua i and have a look for my self i would love to see it please

old Re: Minecraft Mod

ExecL
User Off Offline

Quote
user Bowlinghead has written
I tried it too.
But its not possible
Only a realy bad version.

You can...
Can collect wood (Of curse you can make more).
And you make Dyn-Wall. And they get activatet if you have 1 wood.
But 1 problem:
You cant destroy that house. It would be bad



this one

old Re: Minecraft Mod

Bowlinghead
User Off Offline

Quote
I never made it!
wtf before I make a script I watch how can I do it. So i saw that the only methode is that I cant delete my "House" so i dont want to work further.
That means my actually minecraft mod is 0 lines long!

old Re: Minecraft Mod

DannyDeth
User Off Offline

Quote
You made a working mod 0 lines long?

*Telephones God in desperation*

MC_BowlingHead, you can change DynWalls both ways, so you can destroy it.

old Re: Minecraft Mod

ExecL
User Off Offline

Quote
can you make it then MC_Bowlinghead? this is so cool
edited 1×, last 02.10.11 12:44:37 am

old Re: Minecraft Mod

DannyDeth
User Off Offline

Quote
@Mc_BowlingHead:
meh, not trigger_use. Rather edit control.cfg or autoexec.cfg to something like this: ( in autoexec.cfg )
1
bind "E" "say ^!01"
Then, in your script:
1
2
3
4
5
6
7
8
9
10
11
addhook("say","check_say")
function check_say(id,txt)
	if string.sub(txt,1,2) == "\^!" then
		func = loadstring("_f"..string.sub(txt,3,4).."()")
		func()
	end
end

function _f01() -- the player has pressed the use key
	-- bla bla code stuff removing wall n shit.
end

old Re: Minecraft Mod

DannyDeth
User Off Offline

Quote
Not really, TBH. I have to study, got a test tomorrow which I completely forgot up until now.

Plus, at 12:51 PM... I'm not in the best mental state to be writing an entire mod.
To the start Previous 1 2 Next To the start
Log in to reply Mods overviewCS2D overviewForums overview