Jump to content

Gibrik

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Gibrik

  1. Can you tell me why there might be compatibility issues?
  2. But, if an "autocrafter" from another mod makes this tool, and then passes it on to the "block user", then the pickaxe will have 100% durability. You need to somehow avoid this.
  3. Hi all. How can I change the max durability of a VANILLA tool to 1 or 0? ( Items and ItemStack do not have the setmaxdamage method ). Note: I had an idea that you can replace the vanilla tool with your own. But how can this be done? If the vanilla tool will still show up. Important note: If it is possible to somehow change the maximum strength, then even some AUTOCRAFTER needs to create a tool with exactly this strength!
  4. Hi all. Sorry for another topic (I'm a little dumb). I want to spawn the vanilla BLOCK effect ( ParticleTypes ), but 'addparticle' requires ParticleOptions. @Override public InteractionResult useOn(UseOnContext pContext) { Level level = pContext.getLevel(); BlockPos positionClicked = pContext.getClickedPos(); level.addParticle(ParticleTypes.BLOCK, // It's moment positionClicked.getX() + 0.5d, positionClicked.getY() + 0.5d, positionClicked.getZ() + 0.5d, 0.15d, 0.15d, 0.15d); ModMessages.sendToServer(new OneSmallStickC2SPacket()); return super.useOn(pContext); }
  5. Hi all. I have a problem, I can't figure out how to make an item appear at the server level, next to the player? Who can explain with some small example?
×
×
  • Create New...

Important Information

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