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 Re: Minecraft Mod

Bowlinghead
User Off Offline

Quote
user DannyDeth has written
@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


Yeah
That should work!

old Re: Minecraft Mod

DannyDeth
User Off Offline

Quote
I wouldn't write it if I didn't think it would fuck.

EDIT: Not fuck, I meant to write work. Sorry about that.

old do you?

ExecL
User Off Offline

Quote
@MC_Bowlinghead
do you feel like doing it now?

old Re: Minecraft Mod

DannyDeth
User Off Offline

Quote
Execl obviously doesn't know how to code in Lua.

Execl, you will want to check out www.lua.org/pil as it is great for beginners and intermediates alike. Also, if you want to make a mod, you can't just say, "help me do this" or "help me do that" and then piece everything together and claim it is yours. After all, if you do that, you haven't really MADe the mod.

old Re: Minecraft Mod

Apache uwu
User Off Offline

Quote
Sad how you have this awesome idea but it can't be made.

When I have time I will try to help you
To the start Previous 1 2 Next To the start
Log in to reply Mods overviewCS2D overviewForums overview