Everything posted by BusyBeever
- [1.9]Whats in slot
-
[1.8.9] How do I make my mod server compatible?
SideOnly stuff can only be used when you are sure to be on client side, if you are not sure you need to use proxies
-
Removing the exact amount of an item from the inventory of the player
areItemStacksEqual checks if the stacks have the same stacksize, which is not what you want. change ur method to take an Item as param instead of an ItemStack, and then check stack.getItem()==myPassedItem
-
in creative game mode ,how to display health?
What exactly do you want? If you want player to build like creative and die like survival allow the player to fly and remove that players loose a block when they place it. The other way round is way harder.
- [1.7.10]Addon
-
(1.7.10)Library. How to work with them?
there are two ways. 1. put ur library in the mods folder 2. make gradle merge the content of ur lib jar inside ur mod jar
-
[1.7.10]Addon
you need the deobfuscated version
-
[1.9] Updating to newest version
What shall I pass for the translating as Object... Parameters? Is null fine?
-
[1.9] Updating to newest version
I18n.format (the I18n from net.minecraft.client.resources ). If you are not on the client: don't translate, the server does not know the client's language. But then what I18n in util.translation for? I don't think there is a replacement, ItemBow , which used it in vanilla, now has a for loop. And forge won't make one? (as helper class or as patch?)? The translation is to translate keys to "words" on client side..?
-
How do i change a weapons damage when armor is equipt
Depends on the functionality tbh. If you change your chest plate and the arrow is still flying you still want more dmg?
-
How do i change a weapons damage when armor is equipt
If(!world.isRemote)
-
How do i change a weapons damage when armor is equipt
Server and client side I guess
-
How do i change a weapons damage when armor is equipt
Google Forge events. Coolalias has a tutorial for it
-
[1.9] Updating to newest version
Hey everyone, I am updating my mod and I was unable to find replacements for the following and hope to find help here -EnchantmentHelper.getSilkTouchModifier -StatCollector.translateToLocal -player.inventory.consumeInventoryItem (ofc i could iterate over the inventory but is there another way) -GameRegistry.findUniqueIdentifierFor Any help is appreciated
-
How do i change a weapons damage when armor is equipt
You will need to use events for that. Either LivingHurtsEvent to calculate the dmg new or some kind of arrow event
-
[1.7.10] [Unsolved] Can Anyone help with this error?
it would be a shame if we could see the stacktrace and the code.
-
[1.7.10] Network messaging problem
Don't register message with SideOnly Move the registration to preinit
-
[1.9] Getting the recipe of itemstacks that make up an item!
The question is for what do you need it
-
[1.9] Getting the recipe of itemstacks that make up an item!
And custom crafting systems.
-
[1.7.10] Destroyed Block Effects?
How about overriding the method in ur block class? Also you should really update. 1.7 is so outdated
-
[1.9] Stone Crash
Read the message. Are you registering an block with minecraft:stone?
-
[1.8.9] Cant resolve Error on an easy blockstates Ore Block..
yeah sorry i had a total brainfart (pls ignore my words about u cant register them, if you are using the metadata correctly you can) im still not sure what the problem is, but i feel like its bc the capital letters, did you try it?
-
[1.8.9] Cant resolve Error on an easy blockstates Ore Block..
And you cant register one block three times with different renderer, how should minecraft know which to use? You need to instantiate ur ore blocks as 3 different ones
-
[1.8.9] Cant resolve Error on an easy blockstates Ore Block..
its so nice that I know how ur registerRender method looks nice..
-
[SOLVED][1.8] setDead(); is acting weirdly
dont store variables inside the item classes, since they are singleton. you need to use the items nbt to store data
IPS spam blocked by CleanTalk.