RadioHasNoFuture Posted December 17, 2012 Posted December 17, 2012 hey! i have a simple idea: i need a mod wich runs a configurable command as soon as i touch lava. this ofcourse has to work on a server as well. and please make it for 1.4.5 so i can use it thanks
willie81230 Posted December 18, 2012 Posted December 18, 2012 wrong place to post this try the minecraft fourms or planet minecraft
theprolo Posted December 18, 2012 Posted December 18, 2012 Seems like it would be extremely simple with a bit of base-class modding of lava from what I hear, unless Forge already has a hook which could be used for this. If not, I'm pretty sure that you could mod the changes Forge made so you have a modified Forge class to make it compatible.
gotyaoi Posted December 18, 2012 Posted December 18, 2012 At that point, it's no better than base class modding, because you have to make sure everyone gets your modified forge file... Anyway, it would probably be something like @ForgeSubscribe class Foo { public void lavaTime(LivingHurtEvent event) { if( event.entityLiving instanceof EntityPlayer ) { if( event.source instanceof DamageSource.lava ) { //code to be executed here } } } } and in you main file you would need MinecraftForge.EVENT_BUS.register(new Foo()); This version of course would trigger on every damage tick, but it's the basic idea.
Neowulf Posted December 19, 2012 Posted December 19, 2012 I assume this would be to trigger a teleport command or god mode so the person doesn't take damage. Easymode lava.
gotyaoi Posted December 23, 2012 Posted December 23, 2012 Well look, when you say configurable command, do you mean like from the set of in game commands, or from the entirety of what minecraft can do, or somewhere in between?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now