Replace block when right clicked with water bucked

Started by 507CEmaster on Sat, 04/25/2020 - 22:35

Topic category: Help with modding (Java Edition)

Last seen on 15:53, 30. May 2020
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Replace block when right clicked with water bucked
Sat, 04/25/2020 - 22:35

So I'm making a type of block that when right clicked with water bucked it will transform to another block, like the concrete block just instead of placing water beside it, just right click with the water bucket and will transform the block. 

I'm new to Mcreator, got a little experience but I don't know how to make the procedure for it

This is what I have in the procedure "when right clicked"

Event Trigger- triggered by external call or when (global trigger): "No Aditional Trigger

    -If: Get Block at x: X y: Y z: Z = "water"

    -do: replace block at x: X y: Y z: Z with "Block I want to replace" keep state: checked, keep NBT/inventory: Unchecked

 

 

Last seen on 22:23, 24. Jul 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
There is no water bucket in…
Fri, 05/01/2020 - 13:00

There is no water bucket in that procedure.

And if you meant to detect for the water block above the block you want to transform, (because the bucket would have placed it) do

[Is: (get block at [x: x, y: [y + 1], z: z]) material type “WATER”]

You have to do the material type because there is a bug where the normal “get block” cannot detect water blocks

Also, just use [place (block) at x y z] instead of replace block. 
Hope this helps!

Last seen on 15:53, 30. May 2020
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hello, Thank you for your…
Wed, 05/13/2020 - 04:05

Hello, Thank you for your reply, I ended up doing the following

if= has provided entity "water bucket" in inventory

do= 1.remove "water bucket" from provided inventory

        2.set item in main-hand of provided entity to "bucket"

        3.place "block" at x:x y:y :z:z

Last seen on 15:53, 30. May 2020
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thank you very much for your…
Wed, 05/13/2020 - 04:06

Thank you very much for your help! really appreciate it!