Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
Some fixes
  • Loading branch information
Minimine committed Apr 30, 2018
1 parent 78201ac commit c92f293
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 117 deletions.
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
MIT License

Copyright (c) 2018 Minimine
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# LICENSE
# MIT LICENSE

##### Copyright © 2018 by [Minimine](https://github.com/MinimineLP)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Expand Down
130 changes: 18 additions & 112 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,129 +1,29 @@
# Minetem

[Minetem](github.com/MinimineLP/Minetem) is a good possibility to add new items and blocks to Minecraft in Vanilla. [NPM](https://www.npmjs.com/minetem)
[Minetem](https://github.com/MinimineLP/Minetem) is a good possibility to add new items and blocks to Minecraft in Vanilla. [NPM](https://www.npmjs.com/minetem)

## Features
- Easy adding of Blocks, Items and GUI

## Installation

* Install node.js
* On Linux install npm
* Just type `npm i -g minetem`

More detailed Guide: [Minetem Install-Guide]( https://github.com/MinimineLP/minetem/wiki/Install-Guide)

## Usage

#### Command
Type **minetem** and add your arguments:
- compile <source-json\> <dest-folder\> - compile source json
- debug - use debug mode (get debug information)
### JSON format
```json
{
"blocks": [
{
"id": 1,
"textures": "misc/underwater"
},
{
"id": 2,
"textures": {
"up": "blocks/vine",
"down": "blocks/tube_coral",
"east": "blocks/tnt_top",
"west": "blocks/terracotta",
"north": "blocks/structure_block_save",
"south": "blocks/stripped_birch_log_top"
}
}
],
"items": [
{
"id": 1,
"parent": "diamond_sword",
"texture": "blocks/birch_log"
},
{
"id": 2,
"parent": "diamond_sword",
"model": "block/anvil"
}
],
"guis": [
{
"id": 1,
"texture": "customguis/1"
}
]
}
```
- This is the json structure of the source json. in the first example of a block you define the id of the block (1) and then the texture. The parent of a block is automatically set to a diamond hoe. So to place the first block you have to execute this command:
```
/setblock ~ ~ ~ minecraft:mob_spawner{SpawnData:{id:"minecraft:armor_stand",ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1b,tag:{Unbreakable:1b,Damage:1}}]}}
```
- The second block is the same as the first, but in this example the block is not the same texture on the first every page of the block. We also do this with the id, the second block has also a diamond_hoe as parent like every block, so we mustn't have the same id for it. But this block has for every page side another texture, so we have to write them all manually, and cant use the short form. To place this block type
```
/setblock ~ ~ ~ minecraft:mob_spawner{SpawnData:{id:"minecraft:armor_stand",ArmorItems:[{},{},{},{id:"minecraft:diamond_hoe",Count:1b,tag:{Unbreakable:1b,Damage:2}}]}}
```
- For an item we have to manually define the parent. Because it has another parent as the diamond_hoe, we can take an id we already used for the blocks, the 1. Here we can just define one side of the texture, because an item texture has only one side. You can use the following parent types:
```
wooden_sword
golden_sword
stone_sword
iron_sword
diamond_sword
wooden_pickaxe
golden_pickaxe
stone_pickaxe
iron_pickaxe
diamond_pickaxe
wooden_shovel
golden_shovel
stone_shovel
iron_shovel
diamond_shovel
wooden_axe
golden_axe
stone_axe
iron_axe
diamond_axe
wooden_hoe
golden_hoe
stone_hoe
iron_hoe
diamond_hoe
leather_helmet
golden_helmet
chainmail_helmet
iron_helmet
diamond_helmet
leather_chestplate
golden_chestplate
chainmail_chestplate
iron_chestplate
diamond_chestplate
leather_leggings
golden_leggings
chainmail_leggings
iron_leggings
diamond_leggings
leather_boots
golden_boots
chainmail_boots
iron_boots
diamond_boots
elytra
carrot_on_a_stick
fishing_rod
```
To get the Item from the last example just type
```
/give @s minecraft:diamond_sword{Unbreakable:1b,Damage:1}
```
- The second item is nearly the same as the first, but this time it has a custom model, no custom texture. With this model it will look like an anvil. To get it just type
```
/give @s minecraft:diamond_sword{Unbreakable:1b,Damage:2}
```
- The creating of an Inventory is nearly the same as the creating of a block, but we just can use one texture, not 6. As parent it has a diamond_shovel. To place it just type
```
/setblock ~ ~ ~ minecraft:chest{Items:[{Slot:0b,id:"minecraft:diamond_shovel",Count:1b,tag:{Unbreakable:1b,Damage:1}}]} replace
```

#### JSON - On our wiki
* [Block Creation](https://github.com/MinimineLP/minetem/wiki/Adding-Blocks)
* [GUI Creation](https://github.com/MinimineLP/minetem/wiki/Adding-GUIS)
* [Item Creation](https://github.com/MinimineLP/minetem/wiki/Adding-Items)

## Authors

Expand All @@ -133,9 +33,15 @@ To get the Item from the last example just type

* [NodeJS](https://nodejs.org/en/)

## Used dependencies
- [update-notifier](https://www.npmjs.com/package/update-notifier)

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

## Issues
It would be very nice, if you find a issue to report it via the github issue function.

## Planned
- Auto-generated functions
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "minetem",
"version": "0.0.3",
"version": "0.0.2",
"description": "An easy way to add blocks and other stuff to minecraft",
"main": "src/index.js",
"scripts": {
Expand All @@ -10,8 +10,15 @@
"minetem": "src/index.js"
},
"author": "Minimine",
"license": "ISC",
"dependencies": {},
"repository": "github.com/MinimineLP/Minetem",
"license": "MIT",
"repository" :
{
"type" : "git",
"url" : "https://github.com/MinimineLP/Minetem.git"
},
"homepage":"https://miniminelp.github.io/minetem/",
"bugs": {
"url":"https://github.com/MinimineLP/minetem/issues"
},
"preferGlobal": "true"
}

0 comments on commit c92f293

Please sign in to comment.