Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/03/19 in all areas

  1. Hello! I have onUpdate method onUpdate(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected) I need to check - is item in world as dropped item, after that I need to change item to another. How can I do this?
    1 point
  2. I added dependency to support JEI: dependencies { deobfProvided "mezz.jei:jei_${mc_version}:${jei_version}:api" runtime "mezz.jei:jei_${mc_version}:${jei_version}" } After I ran gradlew build (don't know why) and this cause a lot of errors (Cannot resolve symbol on FMLInitializationEvent and etc.). How to fix all?
    1 point
  3. 1 point
  4. So, after that I spawn new entityitem: @Override public boolean onEntityItemUpdate(EntityItem entityItem) { World world = entityItem.world; if (world.isRemote) { world.createExplosion(entityItem, entityItem.posX, entityItem.posY, entityItem.posZ, 0f, true); world.removeEntity(entityItem); world.spawnEntity(new EntityItem(world, entityItem.posX, entityItem.posY, entityItem.posZ, new ItemStack(ItemsRegistry.URANIUM, 1))); } return super.onEntityItemUpdate(entityItem); } But, I can't pickup new EntityItem. How can I fix this?
    1 point
  5. There's also a minecraft:fences tag, which includes all wooden fences plus the nether brick fence. That sounds like a suitable place to add your metal fence. To add your block to that tag, create a file src/main/resources/data/minecraft/tags/blocks/fences.json in your project, and add something like: { "replace": false, "values": [ "yourmod:your_fence_block" ] } substituting in the correct block ID, of course. The "replace": false part there indicates that you're appending your block to the minecraft:fences tag, rather than overwriting it. If you want to browse all existing (vanilla) tags from your IDE, look for the external library "net.minecraft:client:extra:1.14.3" in your project dependencies tab (at least for IntelliJ, don't ask me about Eclipse). Under there you'll see all the assets and data resources from vanilla, which can be a very useful reference.
    1 point
  6. Any chance this will be added to the Block.Properties as it seems a bit redundant to create a class for a block just to set a harvest level?
    1 point
  7. When you declare a texture, don't add the "PNG" suffix, it's implied [example here] Also, your setup method seems a rather roundabout way of simply adding a .setRegistryName to your registry entry [other example]. I'll have to leave the GUI question to someone else as I haven't tackled on of those since 1.7 /P
    1 point
  8. You must use Java 8 to launch any Forge version before 1.13
    1 point
×
×
  • Create New...

Important Information

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