added up to
Some checks failed
build / build (21) (push) Has been cancelled

This commit is contained in:
Walrus 2024-09-01 22:01:10 -04:00
parent b164b66297
commit 9d558d9d82
44 changed files with 359 additions and 10 deletions

View File

@ -77,6 +77,14 @@ public class BlockManager {
RegisterBlock("example_block_ore", exampleBlockOre);
RegisterBlock("example_block", exampleBlock);
RegisterBlock("money_block", MONEY_BLOCK);
RegisterBlock("cent_coin", CENT_COIN);
RegisterBlock("5_cent_coin", FIVE_CENT_COIN);
RegisterBlock("10_cent_coin", TEN_CENT_COIN);
RegisterBlock("25_cent_coin", TWENTY_FIVE_CENT_COIN);
RegisterBlock("1_dollar", ONE_DOLLAR);
RegisterBlock("5_dollar", FIVE_DOLLAR);
RegisterBlock("10_dollar", TEN_DOLLAR);
RegisterBlock("20_dollar", TWENTY_DOLLAR);
}
////CUSTOM BLOCKS BELOW
@ -87,4 +95,67 @@ public class BlockManager {
.sounds(BlockSoundGroup.METAL)
.luminance(100));
////CENT COIN
public static final Block CENT_COIN = new Block(FabricBlockSettings.create()
.mapColor(MapColor.GOLD)
.breakInstantly()
.noCollision()
.nonOpaque()
.sounds(BlockSoundGroup.METAL));
////5_CENT_COIN
public static final Block FIVE_CENT_COIN = new Block(FabricBlockSettings.create()
.mapColor(MapColor.GOLD)
.breakInstantly()
.noCollision()
.nonOpaque()
.sounds(BlockSoundGroup.METAL));
////10_CENT_COIN
public static final Block TEN_CENT_COIN = new Block(FabricBlockSettings.create()
.mapColor(MapColor.GOLD)
.breakInstantly()
.noCollision()
.nonOpaque()
.sounds(BlockSoundGroup.METAL));
////25_CENT_COIN
public static final Block TWENTY_FIVE_CENT_COIN = new Block(FabricBlockSettings.create()
.mapColor(MapColor.GOLD)
.breakInstantly()
.noCollision()
.nonOpaque()
.sounds(BlockSoundGroup.METAL));
////25_CENT_COIN
public static final Block ONE_DOLLAR = new Block(FabricBlockSettings.create()
.mapColor(MapColor.GOLD)
.breakInstantly()
.noCollision()
.nonOpaque()
.sounds(BlockSoundGroup.METAL));
////25_CENT_COIN
public static final Block FIVE_DOLLAR = new Block(FabricBlockSettings.create()
.mapColor(MapColor.GOLD)
.breakInstantly()
.noCollision()
.nonOpaque()
.sounds(BlockSoundGroup.METAL));
////25_CENT_COIN
public static final Block TEN_DOLLAR = new Block(FabricBlockSettings.create()
.mapColor(MapColor.GOLD)
.breakInstantly()
.noCollision()
.nonOpaque()
.sounds(BlockSoundGroup.METAL));
////25_CENT_COIN
public static final Block TWENTY_DOLLAR = new Block(FabricBlockSettings.create()
.mapColor(MapColor.GOLD)
.breakInstantly()
.noCollision()
.nonOpaque()
.sounds(BlockSoundGroup.METAL));
}

View File

@ -7,16 +7,7 @@ public class MoneyBlock extends Block {
// CommonServerUtils commonServerUtils = new CommonServerUtils();
// public static final BlockItem MONEY_BLOCK_ITEM = new BlockItem(BlockManager.MONEY_BLOCK, new FabricItemSettings());
public MoneyBlock(Settings sett) {
super(sett);
// ItemManager.RegisterItem("money_block", MONEY_BLOCK_ITEM);
// @Override
// public ActionResult onUse(World world, PlayerEntity player, Hand hand, BlockHitResult hit) {
// return this.getBlock().onUse(this.asBlockState(), world, hit.getBlockPos(), player, hand, hit);
// }
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "keeblarcraft:block/10_cent_coin"
}
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "keeblarcraft:block/10_dollar"
}
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "keeblarcraft:block/1_dollar"
}
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "keeblarcraft:block/20_dollar"
}
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "keeblarcraft:block/25_cent_coin"
}
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "keeblarcraft:block/5_cent_coin"
}
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "keeblarcraft:block/5_dollar"
}
}
}

View File

@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "keeblarcraft:block/cent_coin"
}
}
}

View File

@ -8,5 +8,13 @@
"block.keeblarcraft.example_block": "Keeblarcraft example block",
"block.keeblarcraft.money_block": "Money! Money! Money!",
"block.keeblarcraft.example_block_ore": "Keeblarcraft example block ore"
"block.keeblarcraft.example_block_ore": "Keeblarcraft example block ore",
"block.keeblarcraft.cent_coin": "Cent Coin",
"block.keeblarcraft.5_cent_coin": "5 Cent Coin",
"block.keeblarcraft.10_cent_coin": "10 Cent Coin",
"block.keeblarcraft.25_cent_coin": "25 Cent Coin",
"block.keeblarcraft.1_dollar": "$1",
"block.keeblarcraft.5_dollar": "$5",
"block.keeblarcraft.10_dollar": "$10",
"block.keeblarcraft.20_dollar": "$20"
}

View File

@ -0,0 +1,22 @@
{
"credit": "Made with Blockbench",
"textures": {
"0": "keeblarcraft:block/10_cent_coin",
"particle": "keeblarcraft:block/10_cent_coin"
},
"elements": [
{
"from": [7, 0, 7],
"to": [9, 1, 9],
"rotation": {"angle": 0, "axis": "y", "origin": [7, 0, 7]},
"faces": {
"north": {"uv": [2, 0, 4, 1], "texture": "#0"},
"east": {"uv": [2, 1, 4, 2], "texture": "#0"},
"south": {"uv": [2, 2, 4, 3], "texture": "#0"},
"west": {"uv": [2, 3, 4, 4], "texture": "#0"},
"up": {"uv": [2, 2, 0, 0], "texture": "#0"},
"down": {"uv": [2, 2, 0, 4], "texture": "#0"}
}
}
]
}

View File

@ -0,0 +1,23 @@
{
"credit": "Made with Blockbench",
"texture_size": [32, 32],
"textures": {
"0": "keeblarcraft:block/10_dollar",
"particle": "keeblarcraft:block/10_dollar"
},
"elements": [
{
"from": [3, 0, 6],
"to": [13, 1, 11],
"rotation": {"angle": 0, "axis": "y", "origin": [3, 0, 6]},
"faces": {
"north": {"uv": [0, 5, 5, 5.5], "texture": "#0"},
"east": {"uv": [5, 0.5, 7.5, 1], "texture": "#0"},
"south": {"uv": [5, 0, 10, 0.5], "texture": "#0"},
"west": {"uv": [5, 1, 7.5, 1.5], "texture": "#0"},
"up": {"uv": [5, 2.5, 0, 0], "texture": "#0"},
"down": {"uv": [5, 2.5, 0, 5], "texture": "#0"}
}
}
]
}

View File

@ -0,0 +1,23 @@
{
"credit": "Made with Blockbench",
"texture_size": [32, 32],
"textures": {
"0": "keeblarcraft:block/1_dollar",
"particle": "keeblarcraft:block/1_dollar"
},
"elements": [
{
"from": [3, 0, 5],
"to": [13, 1, 10],
"rotation": {"angle": 0, "axis": "y", "origin": [3, 0, 5]},
"faces": {
"north": {"uv": [0, 5, 5, 5.5], "texture": "#0"},
"east": {"uv": [5, 0.5, 7.5, 1], "texture": "#0"},
"south": {"uv": [5, 0, 10, 0.5], "texture": "#0"},
"west": {"uv": [5, 1, 7.5, 1.5], "texture": "#0"},
"up": {"uv": [5, 2.5, 0, 0], "texture": "#0"},
"down": {"uv": [5, 2.5, 0, 5], "texture": "#0"}
}
}
]
}

View File

@ -0,0 +1,23 @@
{
"credit": "Made with Blockbench",
"texture_size": [32, 32],
"textures": {
"0": "keeblarcraft:block/20_dollar",
"particle": "keeblarcraft:block/20_dollar"
},
"elements": [
{
"from": [3, 0, 6],
"to": [13, 1, 11],
"rotation": {"angle": 0, "axis": "y", "origin": [3, 0, 6]},
"faces": {
"north": {"uv": [0, 5, 5, 5.5], "texture": "#0"},
"east": {"uv": [5, 0.5, 7.5, 1], "texture": "#0"},
"south": {"uv": [5, 0, 10, 0.5], "texture": "#0"},
"west": {"uv": [5, 1, 7.5, 1.5], "texture": "#0"},
"up": {"uv": [5, 2.5, 0, 0], "texture": "#0"},
"down": {"uv": [5, 2.5, 0, 5], "texture": "#0"}
}
}
]
}

View File

@ -0,0 +1,22 @@
{
"credit": "Made with Blockbench",
"textures": {
"0": "keeblarcraft:block/25_cent_coin",
"particle": "keeblarcraft:block/25_cent_coin"
},
"elements": [
{
"from": [6, 0, 6],
"to": [10, 1, 10],
"rotation": {"angle": 0, "axis": "y", "origin": [6, 0, 6]},
"faces": {
"north": {"uv": [4, 0, 8, 1], "texture": "#0"},
"east": {"uv": [4, 1, 8, 2], "texture": "#0"},
"south": {"uv": [4, 2, 8, 3], "texture": "#0"},
"west": {"uv": [4, 3, 8, 4], "texture": "#0"},
"up": {"uv": [4, 4, 0, 0], "texture": "#0"},
"down": {"uv": [4, 4, 0, 8], "texture": "#0"}
}
}
]
}

View File

@ -0,0 +1,22 @@
{
"credit": "Made with Blockbench",
"textures": {
"0": "keeblarcraft:block/5_cent_coin",
"particle": "keeblarcraft:block/5_cent_coin"
},
"elements": [
{
"from": [7, 0, 7],
"to": [10, 1, 10],
"rotation": {"angle": 0, "axis": "y", "origin": [7, 0, 7]},
"faces": {
"north": {"uv": [3, 0, 6, 1], "texture": "#0"},
"east": {"uv": [3, 1, 6, 2], "texture": "#0"},
"south": {"uv": [3, 2, 6, 3], "texture": "#0"},
"west": {"uv": [3, 3, 6, 4], "texture": "#0"},
"up": {"uv": [3, 3, 0, 0], "texture": "#0"},
"down": {"uv": [3, 3, 0, 6], "texture": "#0"}
}
}
]
}

View File

@ -0,0 +1,22 @@
{
"credit": "Made with Blockbench",
"texture_size": [32, 32],
"textures": {
"1": "keeblarcraft:block/5_dollar"
},
"elements": [
{
"from": [3, 0, 5],
"to": [13, 1, 10],
"rotation": {"angle": 0, "axis": "y", "origin": [3, 0, 5]},
"faces": {
"north": {"uv": [0, 5, 5, 5.5], "texture": "#1"},
"east": {"uv": [5, 0.5, 7.5, 1], "texture": "#1"},
"south": {"uv": [5, 0, 10, 0.5], "texture": "#1"},
"west": {"uv": [5, 1, 7.5, 1.5], "texture": "#1"},
"up": {"uv": [5, 2.5, 0, 0], "texture": "#1"},
"down": {"uv": [5, 2.5, 0, 5], "texture": "#1"}
}
}
]
}

View File

@ -0,0 +1,22 @@
{
"credit": "Made with Blockbench",
"textures": {
"0": "keeblarcraft:block/cent_coin",
"particle": "keeblarcraft:block/cent_coin"
},
"elements": [
{
"from": [7, 0, 7],
"to": [9, 1, 9],
"rotation": {"angle": 0, "axis": "y", "origin": [7, 0, 7]},
"faces": {
"north": {"uv": [2, 0, 4, 1], "texture": "#0"},
"east": {"uv": [2, 1, 4, 2], "texture": "#0"},
"south": {"uv": [2, 2, 4, 3], "texture": "#0"},
"west": {"uv": [2, 3, 4, 4], "texture": "#0"},
"up": {"uv": [2, 2, 0, 0], "texture": "#0"},
"down": {"uv": [2, 2, 0, 4], "texture": "#0"}
}
}
]
}

View File

@ -0,0 +1,3 @@
{
"parent": "keeblarcraft:block/10_cent_coin"
}

View File

@ -0,0 +1,3 @@
{
"parent": "keeblarcraft:block/10_dollar"
}

View File

@ -0,0 +1,3 @@
{
"parent": "keeblarcraft:block/1_dollar"
}

View File

@ -0,0 +1,3 @@
{
"parent": "keeblarcraft:block/20_dollar"
}

View File

@ -0,0 +1,3 @@
{
"parent": "keeblarcraft:block/25_cent_coin"
}

View File

@ -0,0 +1,3 @@
{
"parent": "keeblarcraft:block/5_cent_coin"
}

View File

@ -0,0 +1,3 @@
{
"parent": "keeblarcraft:block/5_dollar"
}

View File

@ -0,0 +1,3 @@
{
"parent": "keeblarcraft:block/cent_coin"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 B

View File

@ -0,0 +1,20 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "keeblarcraft:cent_coin"
}
],
"rolls": 1.0
}
]
}