
NBT
AechtRob opened this issue ยท 2 comments
Awesome addon. A few issues I can't work out.....
-
Is this a new item/block, so if I need to refer to this new item/block in other mods does it need referring to as dropt-bed:bed or still as minecraft:bed ?
-
Does the bed still respect the vanilla variants like colour, orientation and head/foot? I'm also wondering whether I'll need to run some world-gen script to replace all beds generated during world gen, and that will mean I need to supply all the variant data for the replacements too, if it's a literal different block.
-
I can't actually get it to work :) I have this as the first rule in my Dropt main config:
{
"match": {
"drops": {
"drops": [
"minecraft:bed:*"
]
}
},
"replaceStrategy": "REPLACE_ITEMS",
"drops": [{"minecraft:brown_mushroom"}]
}
But placing and then breaking a bed still drops a bed (the bed first turns red, then breaks as normal, dropping the same colour bed as was there at first). Same result if I swap "drops" for "blocks". Have I misunderstood something?
- It is not new, it overrides
minecraft:bed
. - It behaves exactly like the vanilla bed, no need to do anything special.
- The json is incorrect, try this instead:
{
"rules": [
{
"debug": true,
"match": {
"drops": {
"drops": [
"minecraft:bed:*"
]
}
},
"replaceStrategy": "REPLACE_ITEMS",
"drops": [
{
"item": {
"items": [
"minecraft:brown_mushroom"
]
}
}
]
}
]
}