Skip to content

Instantly share code, notes, and snippets.

@toka7290
Last active January 9, 2021 13:24
Show Gist options
  • Save toka7290/2b3ff8d6038af911934f019e1cd983b8 to your computer and use it in GitHub Desktop.
Save toka7290/2b3ff8d6038af911934f019e1cd983b8 to your computer and use it in GitHub Desktop.
{
"format_version": "1.16.100",
"minecraft:item": {
"description": {
"identifier": "toka7290:test_block_placer",
"category": "Items"
},
"components": {
"minecraft:icon": {
"texture": "test_item_2"
},
"minecraft:liquid_clipped": true,
"minecraft:ignores_permission": true,
"minecraft:on_use_on": {
"on_use_on": {
"event": "toka7290:block_replace"
}
},
"minecraft:block_placer": {
"block": "minecraft:beacon"
}
},
"events": {
"toka7290:block_replace": {
"run_command": {
"command": ["fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 iron_block"]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment