nvb-uy / Item_Obliterator

Remove unwanted items
Other
5 stars 5 forks source link

Crashes when using blacklisted_nbt #50

Closed Galysso closed 3 months ago

Galysso commented 3 months ago

I tried using the example from the config file Potion:"minecraft:regeneration" and the example given in https://github.com/nvb-uy/Item_Obliterator/issues/48 and both makes the game crashing at startup.

Here is a crash-report: https://mclo.gs/RV6u7P5

(Forge 1.20.1)

nvb-uy commented 3 months ago

Please escape the quotes using \

BIG-Viljo commented 3 months ago

Could you please elaborate a bit further? Neither "Potion:\"minecraft:regeneration\"" or Potion:\"minecraft:regeneration\" works. The former loads the game, but potions of regeneration are still present and the former straight up crashes.

nvb-uy commented 3 months ago

Please escape the quotes by adding a \ or else the json will freak out.

On Tue, Jun 11, 2024 at 7:35 pm, Galysso @.***(mailto:On Tue, Jun 11, 2024 at 7:35 pm, Galysso < wrote:

I tried using the example from the config file Potion:"minecraft:regeneration" and the example given in #48 and both makes the game crashing at startup.

Here is a crash-report: https://mclo.gs/RV6u7P5

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

BIG-Viljo commented 3 months ago

My bad, github escaped the quotes. I tried "Potion:\"minecraft:regeneration\"" and Potion:\"minecraft:regeneration\", but to no avail. It really would have been easier if you have provided the correct way.

tylrcodes commented 2 months ago

Potion:\"minecraft:regeneration\"

also needing help with this

MeowingInsanely commented 2 months ago

Having same issues for removing a modded item:

{id: "botania:blood_pendant", tag: {brewKey: "botania:bloodthirst"}

Inserting the code in:

  "blacklisted_nbt": [
  // CODE HERE
    ],

Code that I've tried but is causing a crash:

brewKey:\"botania:bloodthirst\"
brewKey:\"botania:bloodthirst"
brewKey:\"botania:bloodthirst"\

Works but does not remove items:

"brewKey:\"botania:bloodthirst\""
malloryhayr commented 1 month ago

They seem to be using a JSON deserializer for a JSON5 file :)

eithli commented 1 month ago

They seem to be using a JSON deserializer for a JSON5 file :)

soooo, what’s the correct way to format it?