Posted May 16, 20232 yr Hey there, I'm trying to remove stuff from a tag using the "remove" option, but it isn't working for me. Can you tell me what's wrong? The original item tag json looks like this: { "values": [ "minecraft:chicken", "minecraft:rabbit", "#forge:raw_chicken", "#forge:raw_rabbit", "#forge:bread", { "id": "simplefarming:raw_chicken_wings", "required": false }, { "id": "simplefarming:raw_sausage", "required": false }, { "id": "simplefarming:raw_horse_meat", "required": false } ] } and my json looks like this: { "remove": [ "#forge:bread" ], "values": [] } If I put the ["replace":true] entry in there, it does clear out the tag, so I'm pretty sure the file is at least the right name and in the right place.
May 16, 20232 yr vanilla tags don't support removing single elements, just replacing the whole thing. I know kubejs has support for removing single elements from tags, but their actual mechanism uses mixins. Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
May 16, 20232 yr Author From the Forge Documentation (1.19.2) : Quote There is also a Forge extension on the Vanilla syntax. You may declare a remove array of the same format as the values array. Any values listed here will be removed from the tag. This acts as a finer grained version of the Vanilla replace option. Am I misunderstanding what this is supposed to be doing?
May 16, 20232 yr Honestly I don't know what is going on with that. From what I can tell the code for it only exists as (stale) PR? i.e. it is not currently in Forge. https://github.com/MinecraftForge/MinecraftForge/pull/9053 Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
May 16, 20232 yr Author Thats funny. Going back through the different versions of the docs, this feature has been around since 1.13. Did it ever work?
May 16, 20232 yr Maybe it got dropped/overlooked at some point during one of Mojang's "great refactorings"? Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
May 16, 20232 yr There already is one linked on that PR: https://github.com/MinecraftForge/MinecraftForge/issues/8949 Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.