FTBTeam / FTB-Mods-Issues

Any mod issues, be it FTB Teams, Quests or any other of our mods can be reported here!
22 stars 1 forks source link

[Bug]: Interact whitelist not working on Fabric 1.20.1 #1371

Closed uberswe closed 5 days ago

uberswe commented 6 days ago

Mod

FTBChunks

Mod version

ftb-chunks-fabric-2001.3.1

Forge / Fabric version

1.20.1

Modpack & version

No response

What issue are you having?

I'm unable to whitelist interaction of blocks in a server claim using a datapack. File is located at data/ftbchunks/tags/blocks/interact_whitelist.json

Here is the content of that file

{
  "replace": true,
  "values": [
    "minecraft:crafting_table",
    "minecraft:bell",
    "minecraft:oak_boat",
    "minecraft:spruce_boat",
    "minecraft:birch_boat",
    "minecraft:jungle_boat",
    "minecraft:acacia_boat",
    "minecraft:dark_oak_boat",
    "minecraft:mangrove_boat",
    "minecraft:cherry_boat",
    "minecraft:ender_chest",
    {
      "id": "#tombstone:graves",
      "required": false
    },
    {
      "id": "#waystones:waystone",
      "required": false
    },
    {
      "id": "#waystones:sharestone",
      "required": false
    },
    {
      "id": "fwaystones:waystone",
      "required": false
    },
    {
      "id": "fwaystones:desert_waystone",
      "required": false
    },
    {
      "id": "fwaystones:stone_brick_waystone",
      "required": false
    },
    {
      "id": "fwaystones:red_desert_waystone",
      "required": false
    },
    {
      "id": "fwaystones:nether_brick_waystone",
      "required": false
    },
    {
      "id": "fwaystones:red_nether_brick_waystone",
      "required": false
    },
    {
      "id": "fwaystones:end_stone_brick_waystone",
      "required": false
    },
    {
      "id": "fwaystones:deepslate_brick_waystone",
      "required": false
    },
    {
      "id": "fwaystones:blackstone_brick_waystone",
      "required": false
    },
    {
      "id": "fwaystones:blackstone_brick_waystone",
      "required": false
    },
    {
      "id": "numismatics:vendor",
      "required": false
    },
    {
      "id": "numismatics:creative_vendor",
      "required": false
    },
    {
      "id": "rentaplate:warp_plate",
      "required": false
    },
    {
      "id": "numismatics:bank_terminal",
      "required": false
    },
    {
      "id": "numismatics:andesite_depositor",
      "required": false
    },
    {
      "id": "numismatics:brass_depositor",
      "required": false
    },
    {
      "id": "#create:seats",
      "required": true
    },
    {
      "id": "#decorative_blocks:seats",
      "required": false
    },
    {
      "id": "#lootr:barrels",
      "required": false
    },
    {
      "id": "#lootr:chests",
      "required": false
    },
    {
      "id": "#lootr:trapped_chests",
      "required": false
    },
    {
      "id": "#lootr:shulkers",
      "required": false
    }
  ]
}

I am including this as part of a mod but I also tried including it as a standalone datapack and it doesn't seem to work. I also tested with 2001.2.7

Crashlogs

No response

Steps to reproduce

  1. Add datapack with whitelisted blocks
  2. Add some claims that belong to a server party
  3. try to interact with whitelisted blocks
  4. Can't interact

Anything else to note?

Could be related to #1286 ?

desht commented 5 days ago

Not related to 1286, that was a 1.21-specific issue related to the block tag path changing in 1.21 (blocks changed to block).

Your json file looks OK and the path looks correct for 1.20. Have you confirmed the datapack is loaded with /datapack list ?

I should also note that adding boats there won't work, because boats aren't blocks. Add those to data/ftbchunks/tags/entity_types/entity_interact_whitelist.json.

uberswe commented 5 days ago

Thanks! After removing the boats it’s working as expected.