Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/17/17 in all areas

  1. We know, bug optifine to update.
    1 point
  2. You were using the postfix decrement operator (count--), which is applied after the rest of the expression is evaluated. So the code was saying "set this stack size to count, and then reduce the local count variable by 1". If you used the prefix operator (--count) it would reduce count by one before using it in the method. But there's also a simpler way of doing this in one line with no local variable - the method ItemStack#shrink will reduce the stack size of the stack by the number you give it.
    1 point
  3. The heldItem parameter was removed from the method in 1.11, since you can get it from the EntityPlayer using EntityLivingBase#getHeldItem (EntityPlayer extends EntityLivingBase). EntityLivingBase#getActiveItemStack only returns a non-empty ItemStack when the entity is actively using an item (e.g. blocking with a shield, drawing a bow). ItemStacks can no longer be null in 1.11+, the default value is now the empty ItemStack. Use ItemStack#isEmpty to check if an ItemStack is empty. The ItemStack.EMPTY field contains an ItemStack that's always empty.
    1 point
  4. If you REALLY don't want to install a normal JRE, then you can use the one bundled with the mojang launcher, just navigate to the runtime folder, then the bin folder. And run our installer.jar with the java.exe in there.
    1 point
  5. Your resourcelocation is declared as But your file is Your names do not match. The resourcelocation points towards a non-existing file
    1 point
  6. 1 point
  7. Works just fine for me. Wjere is your json file located, exactly? If you are registering it the way you are it must be located at resources/assets/iv/loot_tables/villager_butcher.json
    1 point
  8. Your JSON is invalid. There is a comma missing after name property declaration. You can use any of a multitude of JSON validators to check for errors. I personaly use jsonlint but there are many more.
    1 point
  9. Then in your diamond shears item you can override the Item::itemInteractionForEntity method, check that the entity you are interacting is your dragon and drop your desired items.See ItemShears to see how it is done there in more details. My timezone seems to be slightly different from most of other forum members thus I am the one answering you right now
    1 point
  10. RenderingRegistry.registerEntityRenderingHandler should be called in preInit, not init.
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.