My furnace type block cant dedect what I want

Started by Sayochi on

Topic category: Help with modding (Java Edition)

Last seen on 23:06, 21. May 2020
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
My furnace type block cant dedect what I want
Wed, 05/20/2020 - 12:32 (edited)

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

 

 

this is my "metal bar" item (link: https://pasteboard.co/J9f9r67.png )

 

 

this is cooler block. slot 0 where I put water, slot 1 where I put metal bar(link https://pasteboard.co/J9f7Xf5.png )

 

sorry if images dont work

 

Edited by Sayochi on Wed, 05/20/2020 - 12:32
Last seen on 08:55, 4. Nov 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i think the best easy way…
Thu, 05/21/2020 - 19:29

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

 

Last seen on 23:06, 21. May 2020
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
that ingot will have a lot…
Thu, 05/21/2020 - 23:06

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

Last seen on 08:55, 4. Nov 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i have a idea how it may…
Fri, 05/22/2020 - 11:05

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

 

Last seen on 08:55, 4. Nov 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the only thing i could come…
Fri, 05/22/2020 - 11:46

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