aboutsummaryrefslogtreecommitdiff
path: root/build/android/icons/noclip_btn.svg
blob: a816edfc799e66c81d5bbe4ddd3b668aa03ade2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   width="512"
   height="512"
   viewBox="0 0 135.46666 135.46667"
   version="1.1"
   id="svg8"
   inkscape:version="0.92.1 r15371"
   sodipodi:docname="noclip_btn.svg"
   inkscape:export-filename="/home/stu/Desktop/icons/png/noclip_btn.png"
   inkscape:export-xdpi="24.000002"
   inkscape:export-ydpi="24.000002">
  <defs
     id="defs2">
    <filter
       style="color-interpolation-filters:sRGB;"
       inkscape:label="Colorize"
       id="filter4628">
      <feComposite
         in2="SourceGraphic"
         operator="arithmetic"
         k1="0"
         k2="1"
         result="composite1"
         id="feComposite4614" />
      <feColorMatrix
         in="composite1"
         values="1"
         type="saturate"
         result="colormatrix1"
         id="feColorMatrix4616" />
      <feFlood
         flood-opacity="1"
         flood-color="rgb(158,0,0)"
         result="flood1"
         id="feFlood4618" />
      <feBlend
         in="flood1"
         in2="colormatrix1"
         mode="multiply"
         result="blend1"
         id="feBlend4620" />
      <feBlend
         in2="blend1"
         mode="screen"
         result="blend2"
         id="feBlend4622" />
      <feColorMatrix
         in="blend2"
         values="1"
         type="saturate"
         result="colormatrix2"
         id="feColorMatrix4624" />
      <feComposite
         in="colormatrix2"
         in2="SourceGraphic"
         operator="in"
         k2="1"
         result="composite2"
         id="feComposite4626" />
    </filter>
  </defs>
  <sodipodi:namedview
     id="base"
     pagecolor="#404040"
     bordercolor="#666666"
     borderopacity="1.0"
     inkscape:pageopacity="0"
     inkscape:pageshadow="2"
     inkscape:zoom="0.7"
     inkscape:cx="166.57784"
     inkscape:cy="222.80905"
     inkscape:document-units="mm"
     inkscape:current-layer="layer2"
     showgrid="true"
     units="px"
     inkscape:window-width="1920"
     inkscape:window-height="1023"
     inkscape:window-x="0"
     inkscape:window-y="34"
     inkscape:window-maximized="1"
     inkscape:pagecheckerboard="false"
     inkscape:snap-grids="true"
     inkscape:snap-page="true"
     showguides="false">
    <inkscape:grid
       type="xygrid"
       id="grid16"
       spacingx="0.26458333"
       spacingy="0.26458333"
       empspacing="4"
       color="#40ff40"
       opacity="0.1254902"
       empcolor="#40ff40"
       empopacity="0.25098039" />
  </sodipodi:namedview>
  <metadata
     id="metadata5">
    <rdf:RDF>
      <cc:Work
         rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
        <dc:title></dc:title>
        <cc:license
           rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" />
      </cc:Work>
      <cc:License
         rdf:about="http://creativecommons.org/licenses/by-sa/4.0/">
        <cc:permits
           rdf:resource="http://creativecommons.org/ns#Reproduction" />
        <cc:permits
           rdf:resource="http://creativecommons.org/ns#Distribution" />
        <cc:requires
           rdf:resource="http://creativecommons.org/ns#Notice" />
        <cc:requires
           rdf:resource="http://creativecommons.org/ns#Attribution" />
        <cc:permits
           rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
        <cc:requires
           rdf:resource="http://creativecommons.org/ns#ShareAlike" />
      </cc:License>
    </rdf:RDF>
  </metadata>
  <g
     inkscape:groupmode="layer"
     id="layer2"
     inkscape:label="Layer 2"
     style="display:inline">
    <path
       style="fill:none;stroke:#ffffff;stroke-width:8;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
       d="m 20.760344,79.838021 c 8.223364,2.478851 17.933206,1.627099 22.678571,-5.85863 L 54.7782,53.379688"
       id="path4630"
       inkscape:connector-curvature="0"
       sodipodi:nodetypes="ccc" />
    <path
       style="fill:none;stroke:#ffffff;stroke-width:8;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
       d="M 67.606468,96.312411 C 63.817929,84.653248 58.531435,79.592209 48.163617,75.113318 L 59.266666,55.033334"
       id="path4632"
       inkscape:connector-curvature="0"
       sodipodi:nodetypes="ccc" />
    <path
       style="fill:none;stroke:#ffffff;stroke-width:8;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
       d="m 32.950075,58.009898 c 4.52339,-7.945233 16.596076,-10.248496 24.001489,-4.535715 6.443481,4.79704 18.068938,2.827548 22.314838,-3.012345"
       id="path4495"
       inkscape:connector-curvature="0"
       sodipodi:nodetypes="ccc" />
    <ellipse
       style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:0.94658476;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
       id="path4496"
       cx="63.471653"
       cy="41.851418"
       rx="6.9582553"
       ry="7.1472435" />
    <rect
       style="fill:#ffffff;fill-opacity:0.25098041;stroke:#ffffff;stroke-width:1.668;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
       id="rect4645"
       width="71.966667"
       height="76.199997"
       x="41.166401"
       y="29.295174" />
  </g>
</svg>
lass="hl str">"default_tnt_side.png"}, inventory_image = minetest.inventorycube("unknown_node.png", "default_tnt_side.png", "default_tnt_side.png"), groups = {dig_immediate=3}, }) minetest.register_alias("sb", "experimental:soundblock") minetest.register_abm({ nodenames = {"experimental:soundblock"}, interval = 1, chance = 1, action = function(p0, node, _, _) minetest.sound_play("default_grass_footstep", {pos=p0, gain=0.5}) end, }) --[[ stepsound = -1 function test_sound() print("test_sound") stepsound = minetest.sound_play("default_grass_footstep", {gain=1.0}) minetest.after(2.0, test_sound) --minetest.after(0.1, test_sound_stop) end function test_sound_stop() print("test_sound_stop") minetest.sound_stop(stepsound) minetest.after(2.0, test_sound) end test_sound() --]] function on_step(dtime) -- print("experimental on_step") --[[ objs = minetest.get_objects_inside_radius({x=0,y=0,z=0}, 10) for k, obj in pairs(objs) do name = obj:get_player_name() if name then print(name.." at "..dump(obj:getpos())) print(name.." dir: "..dump(obj:get_look_dir())) print(name.." pitch: "..dump(obj:get_look_pitch())) print(name.." yaw: "..dump(obj:get_look_yaw())) else print("Some object at "..dump(obj:getpos())) end end --]] --[[ if experimental.t1 == nil then experimental.t1 = 0 end experimental.t1 = experimental.t1 + dtime if experimental.t1 >= 2 then experimental.t1 = experimental.t1 - 2 minetest.log("time of day is "..minetest.get_timeofday()) if experimental.day then minetest.log("forcing day->night") experimental.day = false minetest.set_timeofday(0.0) else minetest.log("forcing night->day") experimental.day = true minetest.set_timeofday(0.5) end minetest.log("time of day is "..minetest.get_timeofday()) end --]] end minetest.register_globalstep(on_step) -- -- Random stuff -- -- -- TNT (not functional) -- minetest.register_craft({ output = 'experimental:tnt', recipe = { {'default:wood'}, {'default:coal_lump'}, {'default:wood'} } }) minetest.register_node("experimental:tnt", { tile_images = {"default_tnt_top.png", "default_tnt_bottom.png", "default_tnt_side.png", "default_tnt_side.png", "default_tnt_side.png", "default_tnt_side.png"}, inventory_image = minetest.inventorycube("default_tnt_top.png", "default_tnt_side.png", "default_tnt_side.png"), drop = '', -- Get nothing material = { diggability = "not", }, }) minetest.register_on_punchnode(function(p, node) if node.name == "experimental:tnt" then minetest.remove_node(p) minetest.add_entity(p, "experimental:tnt") nodeupdate(p) end end) local TNT = { -- Static definition physical = true, -- Collides with things -- weight = 5, collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5}, visual = "cube", textures = {"default_tnt_top.png", "default_tnt_bottom.png", "default_tnt_side.png", "default_tnt_side.png", "default_tnt_side.png", "default_tnt_side.png"}, -- Initial value for our timer timer = 0, -- Number of punches required to defuse health = 1, blinktimer = 0, blinkstatus = true, } -- Called when a TNT object is created function TNT:on_activate(staticdata) print("TNT:on_activate()") self.object:setvelocity({x=0, y=4, z=0}) self.object:setacceleration({x=0, y=-10, z=0}) self.object:settexturemod("^[brighten") self.object:set_armor_groups({immortal=1}) end -- Called periodically function TNT:on_step(dtime) --print("TNT:on_step()") self.timer = self.timer + dtime self.blinktimer = self.blinktimer + dtime if self.blinktimer > 0.5 then self.blinktimer = self.blinktimer - 0.5 if self.blinkstatus then self.object:settexturemod("") else self.object:settexturemod("^[brighten") end self.blinkstatus = not self.blinkstatus end end -- Called when object is punched function TNT:on_punch(hitter) print("TNT:on_punch()") self.health = self.health - 1 if self.health <= 0 then self.object:remove() hitter:get_inventory():add_item("main", "experimental:tnt") --hitter:set_hp(hitter:get_hp() - 1) end end -- Called when object is right-clicked function TNT:on_rightclick(clicker) --pos = self.object:getpos() --pos = {x=pos.x, y=pos.y+0.1, z=pos.z} --self.object:moveto(pos, false) end --print("TNT dump: "..dump(TNT)) --print("Registering TNT"); minetest.register_entity("experimental:tnt", TNT) -- Add TNT's old name also minetest.register_alias("TNT", "experimental:tnt") -- -- The dummyball! -- minetest.register_entity("experimental:dummyball", { initial_properties = { hp_max = 20, physical = false, collisionbox = {-0.4,-0.4,-0.4, 0.4,0.4,0.4}, visual = "sprite", visual_size = {x=1, y=1}, textures = {"experimental_dummyball.png"}, spritediv = {x=1, y=3}, initial_sprite_basepos = {x=0, y=0}, }, phase = 0, phasetimer = 0, on_activate = function(self, staticdata) minetest.log("Dummyball activated!") end, on_step = function(self, dtime) self.phasetimer = self.phasetimer + dtime if self.phasetimer > 2.0 then self.phasetimer = self.phasetimer - 2.0 self.phase = self.phase + 1 if self.phase >= 3 then self.phase = 0 end self.object:setsprite({x=0, y=self.phase}) phasearmor = { [0]={cracky=3}, [1]={crumbly=3}, [2]={fleshy=3} } self.object:set_armor_groups(phasearmor[self.phase]) end end, on_punch = function(self, hitter) end, }) minetest.register_on_chat_message(function(name, message) local cmd = "/dummyball" if message:sub(0, #cmd) == cmd then count = tonumber(message:sub(#cmd+1)) or 1 if not minetest.get_player_privs(name)["give"] then minetest.chat_send_player(name, "you don't have permission to spawn (give)") return true -- Handled chat message end if not minetest.get_player_privs(name)["interact"] then minetest.chat_send_player(name, "you don't have permission to interact") return true -- Handled chat message end if count >= 2 and not minetest.get_player_privs(name)["server"] then minetest.chat_send_player(name, "you don't have " .. "permission to spawn multiple " .. "dummyballs (server)") return true -- Handled chat message end local player = minetest.get_player_by_name(name) if player == nil then print("Unable to spawn entity, player is nil") return true -- Handled chat message end local entityname = "experimental:dummyball" local p = player:getpos() p.y = p.y + 1 for i = 1,count do minetest.add_entity(p, entityname) end minetest.chat_send_player(name, '"'..entityname ..'" spawned '..tostring(count)..' time(s).'); return true -- Handled chat message end end) -- -- A test entity for testing animated and yaw-modulated sprites -- minetest.register_entity("experimental:testentity", { -- Static definition physical = true, -- Collides with things -- weight = 5, collisionbox = {-0.7,-1.35,-0.7, 0.7,1.0,0.7}, --collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5}, visual = "sprite", visual_size = {x=2, y=3}, textures = {"dungeon_master.png^[makealpha:128,0,0^[makealpha:128,128,0"}, spritediv = {x=6, y=5}, initial_sprite_basepos = {x=0, y=0}, on_activate = function(self, staticdata) print("testentity.on_activate") self.object:setsprite({x=0,y=0}, 1, 0, true) --self.object:setsprite({x=0,y=0}, 4, 0.3, true) -- Set gravity self.object:setacceleration({x=0, y=-10, z=0}) -- Jump a bit upwards self.object:setvelocity({x=0, y=10, z=0}) end, on_punch = function(self, hitter) self.object:remove() hitter:add_to_inventory('craft testobject1 1') end, }) -- -- More random stuff -- minetest.register_on_respawnplayer(function(player) print("on_respawnplayer") -- player:setpos({x=0, y=30, z=0}) -- return true end) minetest.register_on_generated(function(minp, maxp) --print("on_generated: minp="..dump(minp).." maxp="..dump(maxp)) --cp = {x=(minp.x+maxp.x)/2, y=(minp.y+maxp.y)/2, z=(minp.z+maxp.z)/2} --minetest.add_node(cp, {name="sand"}) end) -- Example setting get --print("setting max_users = " .. dump(minetest.setting_get("max_users"))) --print("setting asdf = " .. dump(minetest.setting_get("asdf"))) minetest.register_on_chat_message(function(name, message) --[[print("on_chat_message: name="..dump(name).." message="..dump(message)) local cmd = "/testcommand" if message:sub(0, #cmd) == cmd then print(cmd.." invoked") return true end local cmd = "/help" if message:sub(0, #cmd) == cmd then print("script-overridden help command") minetest.chat_send_all("script-overridden help command") return true end]] end) -- Grow papyrus on TNT every 10 seconds --[[minetest.register_abm({ nodenames = {"TNT"}, interval = 10.0, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) print("TNT ABM action") pos.y = pos.y + 1 minetest.add_node(pos, {name="papyrus"}) end, })]] -- Replace texts of alls signs with "foo" every 10 seconds --[[minetest.register_abm({ nodenames = {"sign_wall"}, interval = 10.0, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) print("ABM: Sign text changed") local meta = minetest.get_meta(pos) meta:set_text("foo") end, })]] --[[local ncpos = nil local ncq = 1 local ncstuff = { {2, 1, 0, 3}, {3, 0, 1, 2}, {4, -1, 0, 1}, {5, -1, 0, 1}, {6, 0, -1, 0}, {7, 0, -1, 0}, {8, 1, 0, 3}, {9, 1, 0, 3}, {10, 1, 0, 3}, {11, 0, 1, 2}, {12, 0, 1, 2}, {13, 0, 1, 2}, {14, -1, 0, 1}, {15, -1, 0, 1}, {16, -1, 0, 1}, {17, -1, 0, 1}, {18, 0, -1, 0}, {19, 0, -1, 0}, {20, 0, -1, 0}, {21, 0, -1, 0}, {22, 1, 0, 3}, {23, 1, 0, 3}, {24, 1, 0, 3}, {25, 1, 0, 3}, {10, 0, 1, 2} } local ncold = {} local nctime = nil minetest.register_abm({ nodenames = {"dirt_with_grass"}, interval = 100000.0, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) if ncpos ~= nil then return end if pos.x % 16 ~= 8 or pos.z % 16 ~= 8 then return end pos.y = pos.y + 1 n = minetest.get_node(pos) print(dump(n)) if n.name ~= "air" then return end pos.y = pos.y + 2 ncpos = pos nctime = os.clock() minetest.add_node(ncpos, {name="nyancat"}) end }) minetest.register_abm({ nodenames = {"nyancat"}, interval = 1.0, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) if ncpos == nil then return end