Red Spray bottle (PLEASE answer fast, its a school project)

Started by yoinks2143 on

Topic category: Help with MCreator software

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Red Spray bottle (PLEASE answer fast, its a school project)
Fri, 11/15/2024 - 23:06 (edited)

im making a spray bottle that paints concrete red

 

but when i use it, the red concrete spawns in the sky

 

what should i do?

the code is:

 

if: (its empty for now, i also need help for this part)
do: If item element (SprayCan) is the item [spray bottle] then play the animation "animation.model.spray"
Replace block at x: X value of look angle vector of [event/target entity]
y: Y value of look angle vector of [event/target entity]
z: Z value of look angle vector of [event/target entity]
with: [red concrete]
keep state (checkmarked) keep NBT (not checkmarked)

 

what im doing wrong here?

Edited by yoinks2143 on Fri, 11/15/2024 - 23:06
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use the 'when item clicked…
Fri, 11/15/2024 - 23:50

Use the 'when item clicked on block' trigger (in item's triggers tab).

Press + procedure, then do the following:

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hope that helps, and good…
Fri, 11/15/2024 - 23:50

hope that helps, and good luck with your project.

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and i need the coordinates,…
Fri, 11/15/2024 - 23:52

and i need the coordinates, or i dont need to replace the "x", "y" and "z" blocks?

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
btw thx :)
Fri, 11/15/2024 - 23:53

btw thx :)

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
with the coordinates, it…
Fri, 11/15/2024 - 23:59

with the coordinates, it simply places it at the blocks position. You can use replace block at x y z, btw, but it makes no difference.