SHOW:
|
|
- or go back to the newest paste.
| 1 | minetest.register_tool("harrytest:wand", {
| |
| 2 | description = "Magic Wand", | |
| 3 | inventory_image = "wand.png", | |
| 4 | tool_capabilities = {
| |
| 5 | full_punch_interval = 1.0, | |
| 6 | max_drop_level=1, | |
| 7 | groupcaps={
| |
| 8 | fleshy={times={[1]=2.00, [2]=0.80, [3]=0.40}, uses=10, maxlevel=2},
| |
| 9 | snappy={times={[2]=0.70, [3]=0.30}, uses=40, maxlevel=1},
| |
| 10 | choppy={times={[3]=0.70}, uses=40, maxlevel=0}
| |
| 11 | } | |
| 12 | - | } |
| 12 | + | }, |
| 13 | on_use = function(itemstack, user, pointed_thing) | |
| 14 | minetest.env:set_node(pointed_thing.above, {name="default:water_source"})
| |
| 15 | end | |
| 16 | }) |