Topic category: Help with Minecraft modding (Java Edition)
if this is at wrong section, sorry.
I just made a simple "Cooler" block. that acts like furnace. but you know, not for heat.
when my "metal bar" item created in my other custom block, I gave it a nbt tag (hot=1).
and added a function (when this item in inventory). function simply makes >>if hot=1 then give player 1 damage<<
this part is working but When I cool it in my "Cooler" block and change nbt tag to >>hot=0<< it stills damaging me.
well actually its natural because my "Cooler" block didnt worked. (it also should remove water bucket when it works)
I mean Im pretty sure I did something wrong but I cant see it. code looks fine to me
(link: https://pasteboard.co/J9f9r67.png )
(link https://pasteboard.co/J9f7Xf5.png )
sorry if images dont work
i think the best easy way for you to do this is have 2 versions of this ingot in items and use the cooler like you would a crafting table for e.g. hot (name) ingot in slot0 "timer for a few ticks or so" then slot1 gives cool (name) ingot
that ingot will have a lot of variation. like iron bar, bronz bar, etc. I dont wanted to add even more items and confuse everything.
it would be great if we could create folders in workspace
i have a idea how it may work i'm gonna run a test to see if it works and then let you know on the results
the only thing i could come up with is if the item is "hot" nbt after put through the cooler the nbt is now changed to "cooled" or "cold" not 100% sure it works i'm in snapshot 2020.3 so the procedures are a bit different but give it a try you may need 2 states with the ingot in the procedures so like if "item" is hot then "fire dmg" else if items is "cold" ect ect then work on the cooler side so it can change the states of the nbt but when the ingot it made via furnace it must become nbt "hot" straight of the bat as in the cooler its going once its been put in cooler it becomes hot so a few procedures need to be moved about