basic with working speedpowder item
This commit is contained in:
@ -0,0 +1,18 @@
|
||||
package de.jottyfan.minecraft.quickiefabric;
|
||||
|
||||
import de.jottyfan.minecraft.quickiefabric.init.RegistryManager;
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jotty
|
||||
*
|
||||
*/
|
||||
public class QuickieFabric implements ModInitializer {
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
RegistryManager.registerItems();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package de.jottyfan.minecraft.quickiefabric.init;
|
||||
|
||||
import de.jottyfan.minecraft.quickiefabric.items.ItemSpeedpowder;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemGroup;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jotty
|
||||
*
|
||||
*/
|
||||
public class RegistryManager {
|
||||
|
||||
public static final ItemSpeedpowder ITEM_SPEEDPOWDER = new ItemSpeedpowder(new Item.Settings().group(ItemGroup.REDSTONE));
|
||||
|
||||
public static final void registerItems() {
|
||||
Registry.register(Registry.ITEM, new Identifier("quickiefabric", "speedpowder"), ITEM_SPEEDPOWDER);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package de.jottyfan.minecraft.quickiefabric.items;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jotty
|
||||
*
|
||||
*/
|
||||
public class ItemSpeedpowder extends Item {
|
||||
public ItemSpeedpowder(Settings settings) {
|
||||
super(settings);
|
||||
}
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
package net.fabricmc.example;
|
||||
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
|
||||
public class ExampleMod implements ModInitializer {
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
// This code runs as soon as Minecraft is in a mod-load-ready state.
|
||||
// However, some things (like resources) may still be uninitialized.
|
||||
// Proceed with mild caution.
|
||||
|
||||
System.out.println("Hello Fabric world!");
|
||||
}
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
package net.fabricmc.example.mixin;
|
||||
|
||||
import net.minecraft.client.gui.screen.TitleScreen;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
@Mixin(TitleScreen.class)
|
||||
public class ExampleMixin {
|
||||
@Inject(at = @At("HEAD"), method = "init()V")
|
||||
private void init(CallbackInfo info) {
|
||||
System.out.println("This line is printed by an example mod mixin!");
|
||||
}
|
||||
}
|
43
src/main/resources/assets/lang/de_de.json
Normal file
43
src/main/resources/assets/lang/de_de.json
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"item.quickie.speedpowderaxe": "Fluchtpulveraxt",
|
||||
"item.quickie.speedpowderpickaxe": "Fluchtpulverspitzhacke",
|
||||
"item.quickie.speedpowdershovel": "Fluchtpulverschaufel",
|
||||
"item.quickie.speedpowder": "Fluchtpulver",
|
||||
"item.quickie.sulphor": "Schwefel",
|
||||
"item.quickie.salpeter": "Salpeter",
|
||||
"item.quickie.construction0": "leerer Bauplan",
|
||||
"item.quickie.construction1": "begonnener Bauplan",
|
||||
"item.quickie.construction2": "fertiger Bauplan",
|
||||
"item.quickie.pencil": "Bleistift",
|
||||
"item.quickie.levelup": "Aufwerter",
|
||||
"block.quickie.orenethersulphor": "Nether-Schwefel",
|
||||
"block.quickie.oresalpeter": "Salpetererz",
|
||||
"block.quickie.oresandsalpeter": "Salpetergestein",
|
||||
"block.quickie.oresulphor": "Schwefelgestein",
|
||||
"block.quickie.dirtsalpeter": "Salpetererde",
|
||||
"block.quickie.sandsalpeter": "Salpetersand",
|
||||
"block.quickie.constructionborder": "Bauplangrenzblock",
|
||||
"block.quickie.rotateclockwise": "im Urzeigersinn Bauplandreher",
|
||||
"block.quickie.rotatecounterclockwise": "gegen den Urzeigersinn Bauplandreher",
|
||||
"block.quickie.mirrorhorizontal": "horizontaler Bauplanspiegler",
|
||||
"block.quickie.mirrorvertical": "vertikaler Bauplanspiegler",
|
||||
"block.quickie.moveup": "Höhenpositionsaddierer",
|
||||
"block.quickie.movedown": "Höhenpositionssubtrahierer",
|
||||
"block.quickie.menu": "Bauplanwerkbank",
|
||||
"block.quickie.lavahoarder": "Lavasauger",
|
||||
"block.quickie.itemhoarder": "Itemsauger",
|
||||
"msg.buildingplan.start": "beginne Konstruktionsaufnahme bei %s,%s,%s",
|
||||
"msg.buildingplan.end": "beende Konstruktionsaufnahme bei %s,%s,%s",
|
||||
"msg.buildingplan.null": "Der Bauplan ist kaputt.",
|
||||
"msg.buildingplan.missing": "Zum Bauen fehlt noch: %s",
|
||||
"msg.buildingplan.rotateclockwise": "Der Bauplan wurde im Uhrzeigersinn gedreht.",
|
||||
"msg.buildingplan.rotatecounterclockwise": "Der Bauplan wurde gegen den Uhrzeigersinn gedreht.",
|
||||
"msg.buildingplan.mirrorhorizontal": "Der Bauplan wurde horizontal gespiegelt.",
|
||||
"msg.buildingplan.mirrorvertical": "Der Bauplan wurde vertikal gespiegelt.",
|
||||
"msg.buildingplan.move": "Der Bauplan wurde in der Höhe um %s Blöcke verschoben.",
|
||||
"msg.buildingplan.failonblock": "Der Bau wurde abgelehnt, es ist im Weg: %s",
|
||||
"msg.buildingplan.failonplayer": "Der Bau wurde abgelehnt, um Spieler %s nicht zu gefährden.",
|
||||
"msg.itemhoarder.summary": "Der Itemsauger enthält: %s",
|
||||
"msg.notyetimplemented": "leider noch nicht verfügbar",
|
||||
"error.unleveling.inventory.full": "Es ist kein Platz mehr frei, um die Aufwertungen abzulegen."
|
||||
}
|
43
src/main/resources/assets/lang/en_us.json
Normal file
43
src/main/resources/assets/lang/en_us.json
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"item.quickie.speedpowderaxe": "speedpowder axe",
|
||||
"item.quickie.speedpowderpickaxe": "speedpowder pickaxe",
|
||||
"item.quickie.speedpowdershovel": "speedpowder shovel",
|
||||
"item.quickie.speedpowder": "speedpowder",
|
||||
"item.quickie.sulphor": "sulfur",
|
||||
"item.quickie.salpeter": "salpeter",
|
||||
"item.quickie.construction0": "empty building plan",
|
||||
"item.quickie.construction1": "started building plan",
|
||||
"item.quickie.construction2": "finished building plan",
|
||||
"item.quickie.pencil": "pencil",
|
||||
"item.quickie.levelup": "level up",
|
||||
"block.quickie.orenethersulphor": "nether sulfur",
|
||||
"block.quickie.oresalpeter": "salpeter ore",
|
||||
"block.quickie.oresandsalpeter": "salpeter stone",
|
||||
"block.quickie.oresulphor": "sulfur stone",
|
||||
"block.quickie.dirtsalpeter": "salpeter dirt",
|
||||
"block.quickie.sandsalpeter": "salpeter sand",
|
||||
"block.quickie.constructionborder": "building plan border block",
|
||||
"block.quickie.rotateclockwise": "rotate clockwise building plan",
|
||||
"block.quickie.rotatecounterclockwise": "rotate counterclockwise building plan",
|
||||
"block.quickie.mirrorhorizontal": "horizontal building plan mirror",
|
||||
"block.quickie.mirrorvertical": "vertical building plan mirror",
|
||||
"block.quickie.moveup": "height position adder",
|
||||
"block.quickie.movedown": "height position substractor",
|
||||
"block.quickie.menu": "building plan crafting table",
|
||||
"block.quickie.lavahoarder": "lava hoarder",
|
||||
"block.quickie.itemhoarder": "item hoarder",
|
||||
"msg.buildingplan.start": "started recording of construction at %s,%s,%s",
|
||||
"msg.buildingplan.end": "finished recording of construction at %s,%s,%s",
|
||||
"msg.buildingplan.null": "The building plan is damaged.",
|
||||
"msg.buildingplan.missing": "Cannot complete until you deliver %s",
|
||||
"msg.buildingplan.rotateclockwise": "Rotated the building plan clockwise",
|
||||
"msg.buildingplan.rotatecounterclockwise": "Rotated the building plan counterclockwise",
|
||||
"msg.buildingplan.mirrorhorizontal": "Mirrored the building plan horizontally",
|
||||
"msg.buildingplan.mirrorvertical": "Mirrored the building plan vertically",
|
||||
"msg.buildingplan.move": "The building plan has been moved in height for %s blocks.",
|
||||
"msg.buildingplan.failonblock": "The building execution was rejected because of %s",
|
||||
"msg.buildingplan.failonplayer": "The building execution was rejected because of %s who could be injured.",
|
||||
"msg.itemhoarder.summary": "The item hoarder contains: %s",
|
||||
"msg.notyetimplemented": "not yet implemented",
|
||||
"error.unleveling.inventory.full": "There is no free stack in your inventory for the level ups."
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "item/coal",
|
||||
"textures": {
|
||||
"layer0": "quickiefabric:item/speedpowder"
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 439 B |
@ -3,29 +3,25 @@
|
||||
"id": "modid",
|
||||
"version": "${version}",
|
||||
|
||||
"name": "Example Mod",
|
||||
"description": "This is an example description! Tell everyone what your mod is about!",
|
||||
"name": "quickiefabric",
|
||||
"description": "Quickiefabric is the fabric implementation of Quickie, a mot to speed up daily work in Minecraft.",
|
||||
"authors": [
|
||||
"Me!"
|
||||
"Jottyfan"
|
||||
],
|
||||
"contact": {
|
||||
"homepage": "https://fabricmc.net/",
|
||||
"sources": "https://github.com/FabricMC/fabric-example-mod"
|
||||
"homepage": "https://gitlab.com/jottyfan/quickiefabric",
|
||||
"sources": "https://gitlab.com/jottyfan/quickiefabric"
|
||||
},
|
||||
|
||||
"license": "CC0-1.0",
|
||||
"license": "MIT",
|
||||
"icon": "assets/modid/icon.png",
|
||||
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"main": [
|
||||
"net.fabricmc.example.ExampleMod"
|
||||
"de.jottyfan.minecraft.quickiefabric.QuickieFabric"
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"modid.mixins.json"
|
||||
],
|
||||
|
||||
"depends": {
|
||||
"fabricloader": ">=0.7.4",
|
||||
"fabric": "*",
|
||||
|
@ -1,14 +0,0 @@
|
||||
{
|
||||
"required": true,
|
||||
"minVersion": "0.8",
|
||||
"package": "net.fabricmc.example.mixin",
|
||||
"compatibilityLevel": "JAVA_8",
|
||||
"mixins": [
|
||||
],
|
||||
"client": [
|
||||
"ExampleMixin"
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user