Skip to content

Instantly share code, notes, and snippets.

Created December 2, 2017 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/afb2b8ae2a10ac7a3ad1bb713af4968c to your computer and use it in GitHub Desktop.
Save anonymous/afb2b8ae2a10ac7a3ad1bb713af4968c to your computer and use it in GitHub Desktop.
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