stairs.register_stair_and_slab("redblock", "default:wood",
{snappy=2,choppy=2,oddly_breakable_by_hand=2},
{"default_wood.png"},
"Redblock stair",
"Redblock slab")
bobblocks:redblock 255 0 0
bobblocks:orangeblock 255 69 0
bobblocks:yellowblock 255 255 0
bobblocks:greenblock 50 205 50
bobblocks:blueblock 0 0 255
bobblocks:indigoblock 111 0 255
bobblocks:violetblock 238 130 238
bobblocks:whiteblock 255 250 250
bobblocks:redpole 255 0 0
bobblocks:orangepole 255 69 0
bobblocks:yellowpole 255 255 0
bobblocks:greenpole 50 205 50
bobblocks:bluepole 0 0 255
bobblocks:indigopole 111 0 255
bobblocks:violetpole 238 130 238
bobblocks:whitepole 255 250 250
bobblocks:redblock_off 205 92 92
bobblocks:orangeblock_off 255 140 0
bobblocks:yellowblock_off 255 215 0
bobblocks:greenblock_off 34 139 34
bobblocks:blueblock_off 0 0 128
bobblocks:indigoblock_off 75 0 130
bobblocks:violetblock_off 148 0 211
bobblocks:whiteblock_off 245 245 245
bobblocks:redpole_off 205 92 92
bobblocks:orangepole_off 255 140 0
bobblocks:yellowpole_off 255 215 0
bobblocks:greenpole_off 34 139 34
bobblocks:bluepole_off 0 0 128
bobblocks:indigopole_off 75 0 130
bobblocks:violetpole_off 148 0 211
bobblocks:whitepole_off 245 245 245
bobblocks:health_off 245 245 245
bobblocks:health_on 255 0 0
bobblocks:trap_spike 139 134 130
bobblocks:trap_spike_set 255 222 173
bobblocks:trap_spike_major 131 139 131
bobblocks:trap_spike_major_set 255 222 173
bobblocks:trap_grass 0 100 0
-- MESECON
-- Add jeija to bobblocks\default.txt and paste the below in at the bottom of bobblocks\blocks.lua
mesecons = {conductor={
state = mesecon.state.on,
offstate = "bobblocks:redblock_off"
}}
mesecons = {conductor={
state = mesecon.state.off,
onstate = "bobblocks:redblock"
}}
Darth Vader/ Awesome Spy wrote:how do I download this?
08:32:14: ERROR[main]: stack traceback:
.../minetest/games/minetest_game/mods/default/functions.lua:98: in function 'register_falling_node'
...test/.minetest/worlds/world/worldmods/bobblocks/init.lua:15: in main chunk
08:32:14: ERROR[main]: WARNING: default.register_falling_node is deprecated
Users browsing this forum: No registered users and 7 guests