Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
minetest.register_node("simple_potions:potion_gravity", {
description = "Gravity Potion",
drawtype = "plantlike",
tiles = {"bottle_blue.png"},
wield_image = "bottle_blue.png",
paramtype = "light",
stack_max = 1,
is_ground_content = false,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.25, -0.5, -0.25, 0.25, 0.4, 0.25}
},
groups = {vessel=1,dig_immediate=3,attached_node=1, potion=1},
sounds = default.node_sound_glass_defaults(),
inventory_image = "bottle_blue.png",
on_use = function(item, user, pointed_thing)
minetest.add_particlespawner({
amount = 1000,
time = 50,
minexptime = 1,
maxexptime = 1,
minsize = 1,
maxsize = 3,
collisiondetection = false,
collision_removal = false,
attached = user,
glow = 10,
vertical = false,
texture = "tnt_smoke.png",
})
return item
end
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.