-
Posts
169 -
Joined
-
Last visited
Everything posted by nov4e
-
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?
-
This is a basic example, but it works for me.
-
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)
-
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
-
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
-
Can someone send a link for a tutorial about how to make a config and how to make a GuiFactory?
-
how i can do that?
-
if(strWorld.isRemote) { strWorld.spawnParticle(EnumParticleTypes.BLOCK_CRACK, x, y, z, 0, 0, 0, intID); }
-
ok i make a new event handler only client only and it should work?
-
I have to put the methods in a eventhandler marking it with Side.CLIENT only?
-
Yes, Im in the client proxy.
-
strWorld.spawnParticle(EnumParticleTypes.BLOCK_CRACK, x, y, z, 0, 0, 0, intID); I can't spawn them. I have to change the 0?
-
ok. How I can do that? I would even be enough to spawn only particles in the damaged entity position.
-
check this plugin. I want to make something similiar to this.
-
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.
-
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)
-
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?
-
strWorld.spawnParticle(EnumParticleTypes.BLOCK_CRACK, x, y, z, 20, 20, 20, intID); Is this correct? But it not spawn particles in-game...
-
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.
-
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?
-
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) ?????
-
Ok and in the private method construct what i have to put here?
-
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.
-
ok I have to made an instance? And how i can use Block#getStateID?
-
Block state? I need the breaking particles