Jump to content

SY_Dev

Members
  • Posts

    6
  • Joined

  • Last visited

SY_Dev's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hello All, What I aim to do is temporarily give the player (either their tool, or their main hand) silk touch on a per block basis. In my mod, there would be certain prerequisites required to have silk touch enabled whilst mining, so it would be to turned off and on as needed. Is this possible to achieve? I am turning on and off silk touch via an event. I was reading another post where someone recommended "BlockLoot .HAS_SILK_TOUCH", but I did not see them elaborate on any of the information. I did not quite understand how to invoke it.
  2. I believe I figured it out, swapped my Item registration to the BlockItem registration.
  3. Would this be done during a BlockItem register event that handles specifically BlockItems, or during the Block register event?
  4. Hey Everyone, I have run into some issues trying to replace a vanilla block. I am currently using the registry event to replace the block, and gotten so far as having the intended adjustments actively working in-game. However, I cannot place the block as a player, it only spawns naturally in the world. I'm not sure why this is the case. If it helps, the error when selecting a block (middle mouse click) is "[Render thread/WARN] [ne.mi.co.ForgeHooks/]: Picking on: [BLOCK] minecraft:deepslate gave null item".
  5. (New to modding, with some Java experience) As the title states I am trying to stop drops for a specific block in the world. However, I do not want to make a block always drop nothing. Ex. If I mine a bookshelf *without the correct tool* I want the bookshelf block to be dropped, rather than books. (I would be doing this for multiple types of blocks, ex. glowstone) I currently am watching for the "BlockEvent.BreakEvent" and running the logic as its called. The closest I've gotten to successfully doing so is sending a packet to the server and attempting to stop block drops from there. For whatever reason when I try to do this an invisible block is left in its place bugging the player out when they collide with it. I've tried to fix it with the client-side as well but had no success. Is there a way to simply cancel block drops for a given block?
×
×
  • Create New...

Important Information

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