1.2.7 • Published 7 months ago

mcbe v1.2.7

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

mcbe

An npm to help addon creators

Install

npm i mcbe

Usage

const { Addon, Block, Item } = require("mcbe");

new Addon("Hello", "By MineCodeBR")
	.toManifestCreated("./result/hello")
	.setRecipe({
		type: "minecraft:crafting_shaped",
		identifier: "mc:testee",
		tables: ["crafting_table", "altar"],
		pattern: ["#", "#", "#"],
		key: {
			"#": {
				item: "minecraft:stone"
			}
		},
		result: {
			item: "mc:testee",
			count: 1
		}
	})
.addBlock(
	new Block("mc:testee")
	.setStates({ "mc:testee": [0, 1, 2, 3, 4] })
	//.setComponent("minecraft:boolean", true)
	//.setComponent("minecraft:object", { up: false })
	.setComponent("minecraft:light_dampening", 0)
	.setComponent("minecraft:loot", {
		dest: "loot_tables/hello/nhem.json",
		loot: {
			rolls: 1,
			entries: [{
					type: "item",
					name: "minecraft:apple",
				}],
	        },
    })                  //  src
	.setGeometry("./cube.geo.json", { bb_main: true, })
	.setTerrainTexture("grass", "textures/blocks/gras", "./grass.png")
	.setMaterialTexture({
      "*": "stone",				
	  "minecraft:stone": "stone"
	})
)
.addItem(
     new Item("mc:testee")
	   .setComponent("minecraft:display_name", {
		  value: "Hello"
	   })
);	


//Use it to lend a hand :>

Result

Result

Nessesary

Result

My Server

Server Discord

1.2.7

7 months ago

1.2.6

9 months ago

1.2.5

11 months ago

1.2.3

11 months ago

1.2.1

11 months ago

1.2.0

3 years ago

1.1.2

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago