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 Quote
willie81230 Posted December 18, 2012 Posted December 18, 2012 wrong place to post this try the minecraft fourms or planet minecraft Quote
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. Quote
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. Quote
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. Quote
RadioHasNoFuture Posted December 23, 2012 Author Posted December 23, 2012 yea, you gut the point. Quote
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? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.