Skip to content

Instantly share code, notes, and snippets.

@Amaz1
Created April 17, 2018 13:46
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 Amaz1/84577af5ef60f7a88a593e3269cac7b0 to your computer and use it in GitHub Desktop.
Save Amaz1/84577af5ef60f7a88a593e3269cac7b0 to your computer and use it in GitHub Desktop.
Schroedinger's Crash
-- Idea suggested by Jordach, inspired by Fuchs
-- http://irc.minetest.net/minetest-hub/2018-04-17#i_5281811
minetest.register_node("schroedingerscrash:schroedinger", {
description = "Schroedinger's Crash",
tiles = {"default_cloud.png^default_obsidian_shard.png^(" ..
"default_mese_crystal_fragment.png^[transform4)"},
groups = {cracky = 1},
on_place = function(itemstack, placer, pointed_thing)
if math.random() > 0.5 then
minetest.item_place_node(itemstack, placer, pointed_thing)
else
assert(false, "Boom!")
end
end,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment