Giter Site home page Giter Site logo

the_spawn_builder's Introduction

The Build Spawner-
Mod that gives players The Build Spawner's to spawn build

How to add build 
---code---
minetest.register_craftitem("the_build_spawner:build", {
	description = "build",
	inventory_image = "build.png",
	on_place = function(itemstack, placer, pointed_thing)
		if pointed_thing.above then
			local file = io.open(minetest.get_modpath("the_build_spawner").."/schemes/build.we")
			local value = file:read("*a")
			file:close()
			local p = pointed_thing.above
			p.y = p.y - 1
			p.x = p.x - 0
			p.z = p.z - 0
			local count = worldedit.deserialize(pointed_thing.above, value)
			itemstack:take_item()
		end
		return itemstack
	end,
})
--------------

For add build do as following-
1)insert your Build_name in "minetest.register_craftitem"
2)Insert you build description or your build_name in description
3)Insert file nameto locate you file like this
(minetest.get_modpath("the_build_spawner").."/schemes/build.we")

leave all code same, for your build to be added,just rename your builds name as you want .

the_spawn_builder's People

Contributors

lupercusa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.