Jump to content

nov4e

Members
  • Posts

    169
  • Joined

  • Last visited

Everything posted by nov4e

  1. Do i have to check if the map contains the silk touch id("silk_touch") or just the interager id? If it needs a int how i can get the enchantment id?
  2. This is a basic example, but it works for me.
  3. Here are some examples of block json files: Block Json File| Folder : testmod/models/block (NAMED furnace.json) Item Json File| Folder : testmod/models/item(NAMED furnace.json) Blockstate Json File| Folder : testmod/blockstates(NAMED furnace.json)
  4. How I can check if an item has the enchantment silk touch? 16 is the silk touch enchantment id. e.getHarvester().getHeldItemMainhand().getEnchantmentTagList().getId() == 16 Thanks
  5. Hello. So in my mod i maked a config and added a field that says "remove iron stick". So in the registry handler I register the <iron_stick> only if the field in the config == true. Well, I added a recipe using json files that uses this stick. How I can disable this json recipe file? If i leave it in the assets/modid/recipes folder it spams and error on the minecraft log. Thanks For The Help. - Nov4e
  6. Can someone send a link for a tutorial about how to make a config and how to make a GuiFactory?
  7. how i can do that?
  8. if(strWorld.isRemote) { strWorld.spawnParticle(EnumParticleTypes.BLOCK_CRACK, x, y, z, 0, 0, 0, intID); }
  9. ok i make a new event handler only client only and it should work?
  10. I have to put the methods in a eventhandler marking it with Side.CLIENT only?
  11. Yes, Im in the client proxy.
  12. strWorld.spawnParticle(EnumParticleTypes.BLOCK_CRACK, x, y, z, 0, 0, 0, intID); I can't spawn them. I have to change the 0?
  13. ok. How I can do that? I would even be enough to spawn only particles in the damaged entity position.
  14. check this plugin. I want to make something similiar to this.
  15. I think not because on some vanilla servers theres a plugin that do that. Maybe I can try to spawn the particles in the same position of the damaged entity.
  16. it has to follow the entity. The number of the particles generated. For example in vanilla theres a command that requires the particle number id. (quantity)
  17. int intID = Block.getStateId(strIBlockState); So i have to put the number of the blocks in this case 0,0,0 right? And now I also have to set particle number?
  18. strWorld.spawnParticle(EnumParticleTypes.BLOCK_CRACK, x, y, z, 20, 20, 20, intID); Is this correct? But it not spawn particles in-game...
  19. private static void spawnBlood(IBlockState strIBlockState, World strWorld, LivingHurtEvent evLivingHurtEvent) { int intID = Block.getStateId(strIBlockState); double x = evLivingHurtEvent.getEntity().getPosition().getX(); double y = evLivingHurtEvent.getEntity().getPosition().getY(); double z = evLivingHurtEvent.getEntity().getPosition().getZ(); strWorld.spawnAlwaysVisibleParticle(intID, x, y, z, 20, 20, 20, 243); } I changed World#spawnParticle to World#spawnAlwaysVisibleParticle Is this the same thing? World#spawnParticle not accepts a ID but World#spawnAlwaysVisibleParticle yes.
  20. yeah but this the particle method. How I can connect EnumParticleType with the block blockstate? The constructor is World#spawnParticle(EnumParticleType, x , y, z, xspeed, yspeed, zspeed, arguments) I have to put the block state in EnumParticleType?
  21. int intID = Block.getStateId(strIBlockState); What I didn't understand is how I can connect EnumParticleType with the block blockstate. And when I use the constructor spawnBlood what I have to but in the blockstate? new IBlockState(Blocks.REDSTONE_BLOCK) ?????
  22. Ok and in the private method construct what i have to put here?
  23. private static void spawnBlood(Block strBlock, World strWorld, LivingHurtEvent evLivingHurtEvent) { IBlockState strBlockState = strBlock.getStateById(Block.getIdFromBlock(strBlock)); int intID = strBlock.getIdFromBlock(strBlock); double x = evLivingHurtEvent.getEntity().getPosition().getX(); double y = evLivingHurtEvent.getEntity().getPosition().getY(); double z = evLivingHurtEvent.getEntity().getPosition().getZ(); EnumParticleTypes strParticle = EnumParticleTypes.BLOCK_CRACK.getParticleFromId(intID); } Something like that? I put all the stuff in a private method.
  24. ok I have to made an instance? And how i can use Block#getStateID?
  25. Block state? I need the breaking particles
×
×
  • Create New...

Important Information

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