Pastebiniä käytetään pidempien tekstien säilömiseen jotka pitää laittaa talteen tai joita esim. ei voi sanoa irkissä tms kätevästi ilman hirveää floodimista. Lyhykäisiä tunnisteita saa arvaamalla satunnaisesti selville, joten ei kannata pasteta mitään erityisen yksityistä.
Tekstiä mahtuu maksimissaan 64 kilotavua per paste eli älä ihmettele jos tosi pitkät pastet katkeaa, jos taas TOSI isoja pasteja tunkkaa tänne niin tulee jopa virhe eikä paste mene edes läpi. Myäskään viagra- tai cialis-sanoja sisältäviä pasteja ei hyväksytä, sillä erinäiset spämmibotit puskevat niitä vähän väliä.
Pasten nimi (vapaaehtoinen):
Värjäys: ABAPActionScriptActionScript 3AdaANTLRANTLR With ActionScript TargetANTLR With C# TargetANTLR With CPP TargetANTLR With Java TargetANTLR With ObjectiveC TargetANTLR With Perl TargetANTLR With Python TargetANTLR With Ruby TargetApacheConfAppleScriptaspx-csaspx-vbAsymptoteautohotkeyAwkBase MakefileBashBash SessionBatchfileBBCodeBefungeBlitzMaxBooBrainfuckBroCC#C++c-objdumpCFEngine3cfstatementCheetahClojureCMakeCoffeeScriptColdfusion HTMLCommon LispCoqcpp-objdumpCSSCSS+Django/JinjaCSS+Genshi TextCSS+MakoCSS+MyghtyCSS+PHPCSS+RubyCSS+SmartyCythonDd-objdumpDarcs PatchDartDebian Control fileDebian SourcelistDelphiDiffDjango/JinjaDTDDuelDylaneCECLElixirElixir iex sessionEmbedded RagelERBErlangErlang erl sessionEvoqueFactorFancyFantomFelixFortranFSharpGASGenshiGenshi TextGettext CatalogGherkinGLSLGnuplotGoGoodData-CLGosuGosu TemplateGroffGroovyHamlHaskellhaXeHTMLHTML+CheetahHTML+Django/JinjaHTML+EvoqueHTML+GenshiHTML+MakoHTML+MyghtyHTML+PHPHTML+SmartyHTML+VelocityHTTPHybrisINIIoIokeIRC logsJadeJavaJava Server PageJavaScriptJavaScript+CheetahJavaScript+Django/JinjaJavaScript+Genshi TextJavaScript+MakoJavaScript+MyghtyJavaScript+PHPJavaScript+RubyJavaScript+SmartyJSONKotlinLighttpd configuration fileLiterate HaskellLLVMLogtalkLuaMakefileMakoMAQLMasonMatlabMatlab sessionMiniDModelicaModula-2MoinMoin/Trac Wiki markupMOOCodeMoonScriptMuPADMXMLMyghtyMySQLNASMNemerleNewLispNewspeakNginx configuration fileNimrodNumPyobjdumpObjective-CObjective-JOCamlOctaveOocOpaOpenEdge ABLPerlPHPPL/pgSQLPostgreSQL console (psql)PostgreSQL SQL dialectPostScriptPOVRayPowerShellPrologPropertiesProtocol BufferPyPy LogPythonPython 3Python 3.0 TracebackPython console sessionPython TracebackRagelRagel in C HostRagel in CPP HostRagel in D HostRagel in Java HostRagel in Objective C HostRagel in Ruby HostRaw token dataRConsoleREBOLRedcodereStructuredTextRHTMLRubyRuby irb sessionSSassScalaScalate Server PageScamlSchemeScilabSCSSSmalltalkSmartySnobolSQLsqlite3conSquidConfStandard MLsystemverilogTclTcshTeaTeXText onlyUrbiScriptValaVB.netVelocityverilogvhdlVimLXMLXML+CheetahXML+Django/JinjaXML+EvoqueXML+MakoXML+MyghtyXML+PHPXML+RubyXML+SmartyXML+VelocityXQueryXSLTYAML
--yo, mobs local t = "default_cactus_top.png" local s = "default_cactus_side.png" local offsets = { [0]={x=-0.1, z= 0}, [1]={x= 0, z=-0.1}, [2]={x= 0.1, z= 0}, [3]={x= 0, z= 0.1}, } minetest.register_entity("wobblycactus:mob", { physical = true, collisionbox = { 0, 0, 0, 0, 0, 0 }, visual = "cube", textures = { t, t, s, s, s, s }, visual_size = { x = 1, y = 1 }, automatic_rotate = false, on_activate = function(self, staticdata) self.num = math.random(2, 4) local pos = self.object:getpos() self.segments = {} self.step = 1 self.pop = moven for i=0, self.num do local np = { x=pos.x, y=pos.y+i, z=pos.z } local seg = minetest.env:add_entity(np, "wobblycactus:seg"):get_luaentity() seg.parent = self seg.off = i seg.on_step = wobble table.insert(self.segments, seg) end end, on_punch = function (self) print(dump(self.num)) end, on_step = function (self, dtime) self.step = self.step + 1 if self.step%20 ~= 0 then return end self.step = 1 self:pop() end }) minetest.register_entity("wobblycactus:seg", { physical = true, collisionbox = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }, visual = "cube", textures = { t, t, s, s, s, s }, visual_size = { x = 1, y = 1 }, automatic_rotate = false, parent, off, on_punch = function(self, puncher) self.parent:pop() end }) wobble = function(self, dtime) if self.off == 0 then return end if self.parent.step % 5 ~= 0 then return end local pos = self.object:getpos() local wob = offsets[(self.parent.step+self.off)%3] local wpos = {x=pos.x+wob.x, y=pos.y, z=pos.z+wob.z} self.object:moveto(wpos, true) end moven = function(self, puncher) local pos = self.object:getpos() local inf = {x=pos.x+math.random(-1,1), y=pos.y, z=pos.z+math.random(-1,1)} local und = {x=inf.x, y=pos.y-1.0, z=inf.z} local infn = minetest.env:get_node(inf) local undn = minetest.env:get_node(und) local npos = pos if minetest.registered_nodes[minetest.env:get_node({x=pos.x,y=pos.y-1,z=pos.z}).name].walkable == false then npos = {x=pos.x,y=pos.y-1,z=pos.z} elseif minetest.registered_nodes[infn.name].walkable == false and minetest.registered_nodes[undn.name].walkable then -- Create node and remove entity if undn.name == 'air' then local uu = minetest.env:get_node({und.x,und.y-1,und.z}) if minetest.registered_nodes[uu.name].walkable == false then return end inf.y = pos.y-1 end npos = inf elseif minetest.registered_nodes[infn.name].walkable then local abv = {x=inf.x,y=inf.y+1,z=inf.z} local abvn = minetest.env:get_node(abv) if abvn.name ~= 'air' then return end npos = abv end self.object:moveto(npos, true) for i=0, #self.segments-1 do local epos = {x=npos.x, y=npos.y+i, z=npos.z} self.segments[i+1].object:moveto(epos, true) end end minetest.register_abm({ nodenames = { "default:dirt_with_grass" }, interval = 600, chance = 30, action = function (pos) minetest.env:add_entity(pos, "wobblycactus:mob") end })