Block Tick Update Procedure not working

Started by MrCrayfisho on

Topic category: Help with modding (Java Edition)

Last seen on 13:43, 12. Oct 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Block Tick Update Procedure not working

Hi, I want to make a procedure that modifies a NBT value when approaching a block but I can't select the procedure.

 

Here's the images:

 

https://imgur.com/a/xiLShwk

https://imgur.com/a/LYEzGne

Last seen on 12:41, 12. Oct 2024
Joined May 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Should use blockticks, not…
Sat, 10/12/2024 - 12:44

Should use blockticks, not entity ticks.

Last seen on 13:43, 12. Oct 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It doesn't work with my…
Sat, 10/12/2024 - 13:44

It doesn't work with my other procedures.

 

Last seen on 14:15, 12. Oct 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Its because on block tick…
Sat, 10/12/2024 - 14:15

Its because on block tick doesnt provide an entity. Although you are searching for an entity in a cube of size 8. There actually is not event/target entity being provided by the trigger.

Instead of using the does entity of type player exist. Instead use entity iterator. Like so:

Then just repeat for your other values. You can either have them stacked or put them in the same if statements like you did in your original procedure. Idk which one will work better, but it depends on your geiger beep effect which I assume is a sound. So probably put them in if statements to be sure.

 

Last seen on 14:15, 12. Oct 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Actually for the procedure…
Sat, 10/12/2024 - 14:17

Actually for the procedure above you need a logic to check if entity iterator is the same as entity of type player/server player. Instead of the does entity exist at x y z block.