Setup

Setting Up Enderman Holdable Blocks:

If you want Endermen to be able to pick up a specific block, you can set up a loot table to define which blocks they can hold. Here's how you can do it:

  1. Create the directory:

Create the following directory structure under your namespace:

data\命名空间\loot_tables\blocks

For example, if your namespace is "coreextensions", create the directory:

data\coreextensions\loot_tables\blocks
  1. Create the loot table file:

Create a file named "enderman_holdable.json" in the directory you just created:

data\coreextensions\loot_tables\blocks\enderman_holdable.json
  1. Open the "enderman_holdable.json" file and configure it as follows:

{
  "replace": false,
  "values": [
    "coreextensions:test_block123"
  ]
}

Replace "coreextensions:test_block123" with the correct block ID that you want Endermen to be able to pick up.

This setup defines that Endermen can hold the "coreextensions:test_block123" block.

Remember that Endermen can only pick up certain blocks based on their predefined behavior in the game. This loot table configures which blocks fall within that behavior.

Please note that this example is specific to Enderman's block holding behavior and doesn't affect their actual behavior or interaction with blocks. It only defines which blocks they can hold.

Last updated