Everything posted by Alex_hawks
-
Taking fall damage on landing
@ForgeSubscribe public void onEntityDammage(LivingHurtEvent event) { if (event.entity instanceof EntityPlayer && event.source == DamageSource.fall && event.isCancelable()) { if(((EntityPlayer)event.entity).inventory.armorInventory[1] instanceof YourJetpack) { if(((YourJetpack)((EntityPlayer)event.entity).inventory.armorInventory[1]).getIsOn()) { event.setCanceled(true) } } } } this assumes that the jetpack is worn on the chest, that the Class<? extends Item> has a method called getIsOn() that returns true if the jetpack is on, and that the Class<? extends Item>.class== YourJetpack.class Edit: Chibill: FeatherFall only goes on boots
-
keeping multiple dimensions loaded
The server unloads dimensions after a certain amount of time after the last person leaves, but will never unload the Overworld.
-
[PullReq]Player NameTag Render Range change
You fork the repo to work on the source. Downloading the source from the release thread (or Jenkins) is for working with forge.
-
URL support for textures
As a ***.png file. just remember to use a link that will NOT change, and use the link to the image, not the page that the image is on.
-
hooks for renderName
Maybe PlayerAPI has something that could help?
-
URL support for textures
Add a mod_***_Version.txt in the same location as where the image is saved, and save the version of the mod that downloaded the image in the mod_***_Version.txt. Every time the mod loads, if the version of the mod is not equal to the version in mod_***_Version.txt, the mod would re-download the image.
-
Metadata getTextureFile()
I don't know for certain, but maybe Buildcraft can help. Looking at how it renders the pipes when they are in the inventory...
-
Ban of mods
And you want to remove single player, why?
-
Trying to configure mods to use block IDs higher then 255 but forge complains
mDiyo has stopped updating his mods for now until 1.3 rolls around, so I doubted that it would have been updated. I do not use it currently anyway. He has updated SOME of his mods, and that happens to include his 4096 Block ID Fix. Direwolf20 uses it in season 4 of his Let's Play.
-
Help: Recompiling Errors
Thanks for that. I'll try it and see if there are any errors afterwards. Edit: I started over and it worked. I might have accidentally used an outdated version of Modloader.
-
Help: Recompiling Errors
Please see http://pastebin.com/MazCauR3 for the errors. Please note that this was in the test recompile (before I had made any changes).