Anyone know how to make like pebbles? #714
Answered
by
ChiefArug
KingTino104
asked this question in
Script-related questions
Replies: 1 comment
-
BlockEvents.rightClicked('somemod:some_block', event => {
// pop an item into the world
event.block.popItemFromFace('minecraft:egg', event.facing)
// or you can give it directly to the player
event.player.give('egg')
// or even have a percent chance to drop it/another one (this is 25%)
if (Math.random() < 0.25)
event.block.popItemFromFace('egg', event.facing)
// you can also change the block
event.block.set('minecraft:hay_bale')
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
KingTino104
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Like right click X block and get 4 things?
Beta Was this translation helpful? Give feedback.
All reactions