Bonemeal for sand?

Started by Aksumite on

Topic category: Help with Minecraft modding (Java Edition)

Active 5 years ago
Joined May 2020
Points:
768

User statistics:

  • Modifications: 0
  • Forum topics: 22
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 42
Bonemeal for sand?

I would like to have bonemeal create my custom desert plants just like how bonemeal works on grass blocks.

Thanks :D

Active 4 years ago
Joined Jun 2020
Points:
665

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 57
You could create a procedure…
Sun, 06/28/2020 - 19:12

You could create a procedure that activates on (Player right clicks on block), and when the player in question has bonemeal in their main hand and the block clicked is sand, you could spawn a bunch of plants on top of the grass.

Active 4 years ago
Joined Jun 2020
Points:
665

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 57
plants like grass* or plants…
Sun, 06/28/2020 - 19:13

plants like grass* or plants that normally generate in deserts such as cacti.

Active 5 years ago
Joined May 2020
Points:
768

User statistics:

  • Modifications: 0
  • Forum topics: 22
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 42
Yeah I know how to do the…
Sun, 06/28/2020 - 21:05

Yeah I know how to do the right clicking, I’m just not sure how to make the desert plants generate randomly in different places on top of the sand

Active 2 years ago
Joined Dec 2017
Points:
1044

User statistics:

  • Modifications: 7
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 322
make your flowers generate…
Thu, 07/30/2020 - 07:09

make your flowers generate at different Xs and Zs axis.. from where you click, you can make it go around it.

So on your right click procedure, add block to X+1, y, z.. add block to X-1, y, z..  etc.

Active 3 years ago
Joined Jul 2020
Points:
680

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 84
Make this out of procedure…
Thu, 07/30/2020 - 07:41

Make this out of procedure blocks

When global RIGHT CLICK

IF block = sand AND item in main hand = bonemeal

DO {

IF random (0,1) > 50, AND get block at x y+1 z = air, DO {place cactus at x y+1 z}

IF random (0,1) > 50, AND get block at x+1 y z = sand, AND get block at x+1 y+1 z = air, DO {place cactus at x+1 y+1 z}

}

Duplicate the second "random (0,1)" line with different coordinates for each block you want to have a chance to place a cactus. (The first line doesn't need to check if the x y z block is sand, because you clicked on that block and checked for sand already.)

Active 5 years ago
Joined May 2020
Points:
768

User statistics:

  • Modifications: 0
  • Forum topics: 22
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 42
I will try it out, thanks!
Thu, 07/30/2020 - 21:34

I will try it out, thanks!

Active 3 years ago
Joined Jul 2020
Points:
680

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 84
You're welcome! Tell me if…
Thu, 07/30/2020 - 23:47

You're welcome! Tell me if you have any problems with it!