added salpeter, sulphor, levelup and pencil items
This commit is contained in:
parent
df4daa0197
commit
888e39604b
@ -1,8 +1,11 @@
|
|||||||
package de.jottyfan.minecraft.quickiefabric.init;
|
package de.jottyfan.minecraft.quickiefabric.init;
|
||||||
|
|
||||||
|
import de.jottyfan.minecraft.quickiefabric.items.ItemLevelup;
|
||||||
|
import de.jottyfan.minecraft.quickiefabric.items.ItemPencil;
|
||||||
|
import de.jottyfan.minecraft.quickiefabric.items.ItemSalpeter;
|
||||||
import de.jottyfan.minecraft.quickiefabric.items.ItemSpeedpowder;
|
import de.jottyfan.minecraft.quickiefabric.items.ItemSpeedpowder;
|
||||||
|
import de.jottyfan.minecraft.quickiefabric.items.ItemSulphor;
|
||||||
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
|
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemGroup;
|
import net.minecraft.item.ItemGroup;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
@ -15,15 +18,29 @@ import net.minecraft.util.registry.Registry;
|
|||||||
*/
|
*/
|
||||||
public class RegistryManager {
|
public class RegistryManager {
|
||||||
|
|
||||||
public static final ItemSpeedpowder ITEM_SPEEDPOWDER = new ItemSpeedpowder(new Item.Settings().group(RegistryManager.QUICKIEFABRIC_GROUP));
|
private static final String QUICKIEFABRIC = "quickiefabric";
|
||||||
|
|
||||||
public static final ItemGroup QUICKIEFABRIC_GROUP = FabricItemGroupBuilder.create(new Identifier("quickiefabric", "all")).icon(() -> new ItemStack(ITEM_SPEEDPOWDER)).appendItems(stacks -> {
|
public static final ItemSpeedpowder ITEM_SPEEDPOWDER = new ItemSpeedpowder();
|
||||||
|
public static final ItemLevelup ITEM_LEVELUP = new ItemLevelup();
|
||||||
|
public static final ItemPencil ITEM_PENCIL = new ItemPencil();
|
||||||
|
public static final ItemSalpeter ITEM_SALPETER = new ItemSalpeter();
|
||||||
|
public static final ItemSulphor ITEM_SULPHOR = new ItemSulphor();
|
||||||
|
|
||||||
|
public static final ItemGroup QUICKIEFABRIC_GROUP = FabricItemGroupBuilder.create(new Identifier(QUICKIEFABRIC, "all")).icon(() -> new ItemStack(ITEM_SPEEDPOWDER)).appendItems(stacks -> {
|
||||||
|
stacks.add(new ItemStack(ITEM_SALPETER));
|
||||||
|
stacks.add(new ItemStack(ITEM_SULPHOR));
|
||||||
stacks.add(new ItemStack(ITEM_SPEEDPOWDER));
|
stacks.add(new ItemStack(ITEM_SPEEDPOWDER));
|
||||||
|
stacks.add(new ItemStack(ITEM_LEVELUP));
|
||||||
|
stacks.add(new ItemStack(ITEM_PENCIL));
|
||||||
}).build();
|
}).build();
|
||||||
|
|
||||||
public static final void registerItems() {
|
public static final void registerItems() {
|
||||||
|
|
||||||
Registry.register(Registry.ITEM, new Identifier("quickiefabric", "speedpowder"), ITEM_SPEEDPOWDER);
|
Registry.register(Registry.ITEM, new Identifier(QUICKIEFABRIC, "speedpowder"), ITEM_SPEEDPOWDER);
|
||||||
|
Registry.register(Registry.ITEM, new Identifier(QUICKIEFABRIC, "levelup"), ITEM_LEVELUP);
|
||||||
|
Registry.register(Registry.ITEM, new Identifier(QUICKIEFABRIC, "pencil"), ITEM_PENCIL);
|
||||||
|
Registry.register(Registry.ITEM, new Identifier(QUICKIEFABRIC, "salpeter"), ITEM_SALPETER);
|
||||||
|
Registry.register(Registry.ITEM, new Identifier(QUICKIEFABRIC, "sulphor"), ITEM_SULPHOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
package de.jottyfan.minecraft.quickiefabric.items;
|
||||||
|
|
||||||
|
import de.jottyfan.minecraft.quickiefabric.init.RegistryManager;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author jotty
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class ItemLevelup extends Item {
|
||||||
|
public ItemLevelup() {
|
||||||
|
super(new Item.Settings().group(RegistryManager.QUICKIEFABRIC_GROUP).maxCount(99));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package de.jottyfan.minecraft.quickiefabric.items;
|
||||||
|
|
||||||
|
import de.jottyfan.minecraft.quickiefabric.init.RegistryManager;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author jotty
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class ItemPencil extends Item {
|
||||||
|
|
||||||
|
public ItemPencil() {
|
||||||
|
super(new Item.Settings().group(RegistryManager.QUICKIEFABRIC_GROUP));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package de.jottyfan.minecraft.quickiefabric.items;
|
||||||
|
|
||||||
|
import de.jottyfan.minecraft.quickiefabric.init.RegistryManager;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author jotty
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class ItemSalpeter extends Item {
|
||||||
|
|
||||||
|
public ItemSalpeter() {
|
||||||
|
super(new Item.Settings().group(RegistryManager.QUICKIEFABRIC_GROUP));
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,6 @@
|
|||||||
package de.jottyfan.minecraft.quickiefabric.items;
|
package de.jottyfan.minecraft.quickiefabric.items;
|
||||||
|
|
||||||
|
import de.jottyfan.minecraft.quickiefabric.init.RegistryManager;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -8,7 +9,7 @@ import net.minecraft.item.Item;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ItemSpeedpowder extends Item {
|
public class ItemSpeedpowder extends Item {
|
||||||
public ItemSpeedpowder(Settings settings) {
|
public ItemSpeedpowder() {
|
||||||
super(settings);
|
super(new Item.Settings().group(RegistryManager.QUICKIEFABRIC_GROUP));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
package de.jottyfan.minecraft.quickiefabric.items;
|
||||||
|
|
||||||
|
import de.jottyfan.minecraft.quickiefabric.init.RegistryManager;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author jotty
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class ItemSulphor extends Item {
|
||||||
|
|
||||||
|
public ItemSulphor() {
|
||||||
|
super(new Item.Settings().group(RegistryManager.QUICKIEFABRIC_GROUP));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "item/paper",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "quickiefabric:item/levelup"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "item/stick",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "quickiefabric:item/pencil"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "item/coal",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "quickiefabric:item/salpeter"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "item/coal",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "quickiefabric:item/sulphor"
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
BIN
src/main/resources/assets/quickiefabric/textures/item/pencil.png
Normal file
BIN
src/main/resources/assets/quickiefabric/textures/item/pencil.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 817 B |
Binary file not shown.
After Width: | Height: | Size: 639 B |
18
src/main/resources/data/quickiefabric/recipes/gunpowder.json
Normal file
18
src/main/resources/data/quickiefabric/recipes/gunpowder.json
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shapeless",
|
||||||
|
"ingredients": [
|
||||||
|
{
|
||||||
|
"item": "minecraft:coal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "quickiefabric:sulphor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "quickiefabric:salpeter"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"result": {
|
||||||
|
"item": "minecraft:gunpowder",
|
||||||
|
"count": 1
|
||||||
|
}
|
||||||
|
}
|
15
src/main/resources/data/quickiefabric/recipes/levelup.json
Normal file
15
src/main/resources/data/quickiefabric/recipes/levelup.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shapeless",
|
||||||
|
"ingredients": [
|
||||||
|
{
|
||||||
|
"item": "minecraft:paper"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "quickiefabric:speedpowder"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"result": {
|
||||||
|
"item": "quickiefabric:levelup",
|
||||||
|
"count": 1
|
||||||
|
}
|
||||||
|
}
|
19
src/main/resources/data/quickiefabric/recipes/pencil.json
Normal file
19
src/main/resources/data/quickiefabric/recipes/pencil.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shaped",
|
||||||
|
"pattern": [
|
||||||
|
"| ",
|
||||||
|
" c"
|
||||||
|
],
|
||||||
|
"key": {
|
||||||
|
"c": {
|
||||||
|
"item": "minecraft:coal"
|
||||||
|
},
|
||||||
|
"|": {
|
||||||
|
"item": "minecraft:stick"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"item": "quickiefabric:pencil",
|
||||||
|
"count": 4
|
||||||
|
}
|
||||||
|
}
|
19
src/main/resources/data/quickiefabric/recipes/pencil2.json
Normal file
19
src/main/resources/data/quickiefabric/recipes/pencil2.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shaped",
|
||||||
|
"pattern": [
|
||||||
|
"| ",
|
||||||
|
" c"
|
||||||
|
],
|
||||||
|
"key": {
|
||||||
|
"c": {
|
||||||
|
"item": "minecraft:charcoal"
|
||||||
|
},
|
||||||
|
"|": {
|
||||||
|
"item": "minecraft:stick"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"item": "quickiefabric:pencil",
|
||||||
|
"count": 4
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user