This commit is contained in:
Justin Parsell 2021-04-27 19:33:47 -04:00
parent ca452cbff9
commit a4a9a1f76d
25 changed files with 62 additions and 75 deletions

View File

@ -1,13 +0,0 @@
package me.parsell.glowstonedust.core;
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
import net.minecraft.item.BlockItem;
import net.minecraft.item.ItemGroup;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
public class glowItems {
public static void init(){
Registry.register(Registry.ITEM, new Identifier("glowstonedust", "glowstone_wire"), new BlockItem(glowBlocks.GLOWSTONEWIRE, new FabricItemSettings().group(ItemGroup.MISC)));
};
}

View File

@ -1,10 +1,10 @@
package me.parsell.glowstonedust; package me.parsell.glowstonewire;
import me.parsell.glowstonedust.core.glowBlocks; import me.parsell.glowstonewire.core.glowBlocks;
import me.parsell.glowstonedust.core.glowItems; import me.parsell.glowstonewire.core.glowItems;
import net.fabricmc.api.ModInitializer; import net.fabricmc.api.ModInitializer;
public class GlowstoneDust implements ModInitializer { public class GlowstoneWire implements ModInitializer {
@Override @Override
public void onInitialize() { public void onInitialize() {
// This code runs as soon as Minecraft is in a mod-load-ready state. // This code runs as soon as Minecraft is in a mod-load-ready state.

View File

@ -1,12 +1,12 @@
package me.parsell.glowstonedust; package me.parsell.glowstonewire;
import me.parsell.glowstonedust.core.glowBlocks; import me.parsell.glowstonewire.core.glowBlocks;
import net.fabricmc.api.ClientModInitializer; import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLayerMap; import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLayerMap;
import net.fabricmc.fabric.api.client.rendering.v1.ColorProviderRegistry; import net.fabricmc.fabric.api.client.rendering.v1.ColorProviderRegistry;
import net.minecraft.client.render.RenderLayer; import net.minecraft.client.render.RenderLayer;
public class GlowstoneDustClient implements ClientModInitializer { public class GlowstoneWireClient implements ClientModInitializer {
@Override @Override
public void onInitializeClient(){ public void onInitializeClient(){
BlockRenderLayerMap.INSTANCE.putBlock(glowBlocks.GLOWSTONEWIRE, RenderLayer.getCutout()); BlockRenderLayerMap.INSTANCE.putBlock(glowBlocks.GLOWSTONEWIRE, RenderLayer.getCutout());

View File

@ -1,4 +1,4 @@
package me.parsell.glowstonedust.common; package me.parsell.glowstonewire.common;
import java.util.Map; import java.util.Map;

View File

@ -1,6 +1,6 @@
package me.parsell.glowstonedust.core; package me.parsell.glowstonewire.core;
import me.parsell.glowstonedust.common.GlowstoneWireBlock; import me.parsell.glowstonewire.common.GlowstoneWireBlock;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.Material; import net.minecraft.block.Material;

View File

@ -1,6 +0,0 @@
{
"parent": "glowstonedust:block/glowstone_dust_side",
"textures": {
"line": "glowstonedust:block/glowstone_dust_line0"
}
}

View File

@ -1,6 +0,0 @@
{
"parent": "glowstonedust:block/glowstone_dust_side",
"textures": {
"line": "glowstonedust:block/glowstone_dust_line1"
}
}

View File

@ -1,6 +0,0 @@
{
"parent": "glowstonedust:block/glowstone_dust_side_alt",
"textures": {
"line": "glowstonedust:block/glowstone_dust_line0"
}
}

View File

@ -1,6 +0,0 @@
{
"parent": "glowstonedust:block/glowstone_dust_side_alt",
"textures": {
"line": "glowstonedust:block/glowstone_dust_line1"
}
}

View File

@ -28,7 +28,7 @@
] ]
}, },
"apply": { "apply": {
"model": "glowstonedust:block/glowstone_dust_dot" "model": "glowstonewire:block/glowstone_dust_dot"
} }
}, },
{ {
@ -46,7 +46,7 @@
] ]
}, },
"apply": { "apply": {
"model": "glowstonedust:block/glowstone_dust_side0" "model": "glowstonewire:block/glowstone_dust_side0"
} }
}, },
{ {
@ -64,7 +64,7 @@
] ]
}, },
"apply": { "apply": {
"model": "glowstonedust:block/glowstone_dust_side_alt0" "model": "glowstonewire:block/glowstone_dust_side_alt0"
} }
}, },
{ {
@ -83,7 +83,7 @@
}, },
"apply": { "apply": {
"y": 270, "y": 270,
"model": "glowstonedust:block/glowstone_dust_side_alt1" "model": "glowstonewire:block/glowstone_dust_side_alt1"
} }
}, },
{ {
@ -102,7 +102,7 @@
}, },
"apply": { "apply": {
"y": 270, "y": 270,
"model": "glowstonedust:block/glowstone_dust_side1" "model": "glowstonewire:block/glowstone_dust_side1"
} }
}, },
{ {
@ -110,7 +110,7 @@
"north": "up" "north": "up"
}, },
"apply": { "apply": {
"model": "glowstonedust:block/glowstone_dust_up" "model": "glowstonewire:block/glowstone_dust_up"
} }
}, },
{ {
@ -119,7 +119,7 @@
}, },
"apply": { "apply": {
"y": 90, "y": 90,
"model": "glowstonedust:block/glowstone_dust_up" "model": "glowstonewire:block/glowstone_dust_up"
} }
}, },
{ {
@ -128,7 +128,7 @@
}, },
"apply": { "apply": {
"y": 180, "y": 180,
"model": "glowstonedust:block/glowstone_dust_up" "model": "glowstonewire:block/glowstone_dust_up"
} }
}, },
{ {
@ -137,7 +137,7 @@
}, },
"apply": { "apply": {
"y": 270, "y": 270,
"model": "glowstonedust:block/glowstone_dust_up" "model": "glowstonewire:block/glowstone_dust_up"
} }
} }
] ]

View File

Before

Width:  |  Height:  |  Size: 453 B

After

Width:  |  Height:  |  Size: 453 B

View File

@ -1,9 +1,9 @@
{ {
"ambientocclusion": false, "ambientocclusion": false,
"textures": { "textures": {
"particle": "glowstonedust:block/glowstone_dust_dot", "particle": "glowstonewire:block/glowstone_dust_dot",
"line": "glowstonedust:block/glowstone_dust_dot", "line": "glowstonewire:block/glowstone_dust_dot",
"overlay": "glowstonedust:block/glowstone_dust_overlay" "overlay": "glowstonewire:block/glowstone_dust_overlay"
}, },
"elements": [ "elements": [
{ "from": [ 0, 0.25, 0 ], { "from": [ 0, 0.25, 0 ],

View File

@ -1,8 +1,8 @@
{ {
"ambientocclusion": false, "ambientocclusion": false,
"textures": { "textures": {
"particle": "glowstonedust:block/glowstone_dust_dot", "particle": "glowstonewire:block/glowstone_dust_dot",
"overlay": "glowstonedust:block/glowstone_dust_overlay" "overlay": "glowstonewire:block/glowstone_dust_overlay"
}, },
"elements": [ "elements": [
{ "from": [ 0, 0.25, 0 ], { "from": [ 0, 0.25, 0 ],

View File

@ -0,0 +1,6 @@
{
"parent": "glowstonewire:block/glowstone_dust_side",
"textures": {
"line": "glowstonewire:block/glowstone_dust_line0"
}
}

View File

@ -0,0 +1,6 @@
{
"parent": "glowstonewire:block/glowstone_dust_side",
"textures": {
"line": "glowstonewire:block/glowstone_dust_line1"
}
}

View File

@ -1,8 +1,8 @@
{ {
"ambientocclusion": false, "ambientocclusion": false,
"textures": { "textures": {
"particle": "glowstonedust:block/glowstone_dust_dot", "particle": "glowstonewire:block/glowstone_dust_dot",
"overlay": "glowstonedust:block/glowstone_dust_overlay" "overlay": "glowstonewire:block/glowstone_dust_overlay"
}, },
"elements": [ "elements": [
{ "from": [ 0, 0.25, 8 ], { "from": [ 0, 0.25, 8 ],

View File

@ -0,0 +1,6 @@
{
"parent": "glowstonewire:block/glowstone_dust_side_alt",
"textures": {
"line": "glowstonewire:block/glowstone_dust_line0"
}
}

View File

@ -0,0 +1,6 @@
{
"parent": "glowstonewire:block/glowstone_dust_side_alt",
"textures": {
"line": "glowstonewire:block/glowstone_dust_line1"
}
}

View File

@ -1,9 +1,9 @@
{ {
"ambientocclusion": false, "ambientocclusion": false,
"textures": { "textures": {
"particle": "glowstonedust:block/glowstone_dust_dot", "particle": "glowstonewire:block/glowstone_dust_dot",
"line": "glowstonedust:block/glowstone_dust_line0", "line": "glowstonewire:block/glowstone_dust_line0",
"overlay": "glowstonedust:block/glowstone_dust_overlay" "overlay": "glowstonewire:block/glowstone_dust_overlay"
}, },
"elements": [ "elements": [
{ "from": [ 0, 0, 0.25 ], { "from": [ 0, 0, 0.25 ],

View File

@ -1,32 +1,32 @@
{ {
"schemaVersion": 1, "schemaVersion": 1,
"id": "glowstonedust", "id": "glowstonewire",
"version": "${version}", "version": "${version}",
"name": "Glowstone Dust", "name": "Glowstone Wire",
"description": "This is an example description! Tell everyone what your mod is about!", "description": "Adds redstone like dust in the form of glowstone, used to emit a lower light level in a small form factor",
"authors": [ "authors": [
"Me!" "Ganku (Badjman)"
], ],
"contact": { "contact": {
"homepage": "https://fabricmc.net/", "homepage": "https://fabricmc.net/",
"sources": "https://github.com/FabricMC/fabric-example-mod" "sources": "https://github.com/FabricMC/fabric-example-mod"
}, },
"license": "CC0-1.0", "license": "MIT",
"icon": "assets/glowstonedust/icon.png", "icon": "assets/glowstonewire/icon.png",
"environment": "*", "environment": "*",
"entrypoints": { "entrypoints": {
"client": [ "client": [
"me.parsell.glowstonedust.GlowstoneDustClient" "me.parsell.glowstonewire.GlowstoneWireClient"
], ],
"main": [ "main": [
"me.parsell.glowstonedust.GlowstoneDust" "me.parsell.glowstonewire.GlowstoneWire"
] ]
}, },
"mixins": [ "mixins": [
"glowstonedust.mixins.json" "glowstonewire.mixins.json"
], ],
"depends": { "depends": {