Block Tick Update Procedure not working

Started by MrCrayfisho on

Topic category: Help with Minecraft modding (Java Edition)

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

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.

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.

 

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.

 

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.