aboutsummaryrefslogtreecommitdiff
path: root/fonts/DroidSansFallbackFull.ttf
diff options
context:
space:
mode:
authorstujones11 <stujones111@gmail.com>2017-06-07 18:52:38 +0100
committerSmallJoker <mk939@ymail.com>2018-06-03 17:31:59 +0200
commitc352ff71e86fd3d40414cbe3a374c9563495ca1a (patch)
treed57ddf0506a9dabc2b1b1617ac47515563fcc267 /fonts/DroidSansFallbackFull.ttf
parent26d0753d870b0b0e2c5e03c817a4c2bdb3eebfc9 (diff)
downloadminetest-c352ff71e86fd3d40414cbe3a374c9563495ca1a.tar.gz
minetest-c352ff71e86fd3d40414cbe3a374c9563495ca1a.tar.bz2
minetest-c352ff71e86fd3d40414cbe3a374c9563495ca1a.zip
Tile material: Add 'TILE_MATERIAL_OPAQUE', use for drawtype 'NDT_NORMAL'
Prevents normal drawtype nodes having transparency. Avoids clients cheating by using 'x-ray' texture packs with transparent textures.
Diffstat (limited to 'fonts/DroidSansFallbackFull.ttf')
0 files changed, 0 insertions, 0 deletions
>129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
-- Minetest: builtin/item.lua

--
-- Falling stuff
--

core.register_entity(":__builtin:falling_node", {
	initial_properties = {
		physical = true,
		collide_with_objects = false,
		collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5},
		visual = "wielditem",
		textures = {},
		visual_size = {x=0.667, y=0.667},
	},

	node = {},

	set_node = function(self, node)
		self.node = node
		local stack = ItemStack(node.name)
		local itemtable = stack:to_table()
		local itemname = nil
		if itemtable then
			itemname = stack:to_table().name
		end
		local item_texture = nil
		local item_type = ""
		if core.registered_items[itemname] then
			item_texture = core.registered_items[itemname].inventory_image
			item_type = core.registered_items[itemname].type
		end
		prop = {
			is_visible = true,
			textures = {node.name},
		}
		self.object:set_properties(prop)
	end,

	get_staticdata = function(self)
		return self.node.name
	end,

	on_activate = function(self, staticdata)
		self.object:set_armor_groups({immortal=1})
		self:set_node({name=staticdata})
	end,

	on_step = function(self, dtime)
		-- Set gravity
		self.object:setacceleration({x=0, y=-10, z=0})
		-- Turn to actual sand when collides to ground or just move
		local pos = self.object:getpos()
		local bcp = {x=pos.x, y=pos.y-0.7, z=pos.z} -- Position of bottom center point
		local bcn = core.get_node(bcp)
		local bcd = core.registered_nodes[bcn.name]
		-- Note: walkable is in the node definition, not in item groups
		if not bcd or