Skip to content

Commit

Permalink
🚑 Fix missing loot tables and block settings
Browse files Browse the repository at this point in the history
  • Loading branch information
CallMeEchoCodes committed Jun 21, 2024
1 parent 5964b8b commit 1fb8ba7
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
org.gradle.jvmargs=-Xmx2G
org.gradle.parallel=true

mod.version = 1.0.0
mod.version = 1.0.1
mod.group = dev.callmeecho
mod.id = bombastic

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,28 @@
import dev.callmeecho.cabinetapi.registry.BlockRegistrar;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.Block;
import net.minecraft.block.Blocks;
import net.minecraft.block.MapColor;
import net.minecraft.block.enums.NoteBlockInstrument;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.util.Identifier;

import static dev.callmeecho.bombastic.main.Bombastic.GROUP;

@SuppressWarnings("unused")
public class BombasticBlockRegistrar implements BlockRegistrar {
public static final ConfettiCannonBlock CONFETTI_CANNON = new ConfettiCannonBlock(AbstractBlock.Settings.create());
public static final ConfettiCannonBlock CONFETTI_CANNON = new ConfettiCannonBlock(AbstractBlock.Settings.create()
.mapColor(MapColor.DEEPSLATE_GRAY)
.requiresTool()
.strength(3.0F, 6.0F)
.sounds(BlockSoundGroup.DEEPSLATE)
);

public static final FirecrackerBlock FIRECRACKER = new FirecrackerBlock(AbstractBlock.Settings.create());
public static final FirecrackerBlock FIRECRACKER = new FirecrackerBlock(AbstractBlock.Settings.create().mapColor(MapColor.BRIGHT_RED).breakInstantly().sounds(BlockSoundGroup.GRASS).burnable().solidBlock(Blocks::never));


@SuppressWarnings("UnstableApiUsage")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "bombastic:confetti_cannon"
}
],
"rolls": 1.0
}
],
"random_sequence": "bombastic:blocks/confetti_cannon"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "bombastic:firecracker"
}
],
"rolls": 1.0
}
],
"random_sequence": "bombastic:blocks/firecracker"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"bombastic:confetti_cannon"
]
}

0 comments on commit 1fb8ba7

Please sign in to comment.