get update from school pc since github banned us :(
This commit is contained in:
@@ -6,7 +6,7 @@ minecraft_version=1.20.1
|
||||
yarn_mappings=1.20.1+build.10
|
||||
loader_version=0.18.3
|
||||
# Mod Properties
|
||||
mod_version=26.3.29.1
|
||||
mod_version=26.3.30
|
||||
maven_group=dev.tggamesyt
|
||||
archives_base_name=szar
|
||||
# Dependencies
|
||||
|
||||
25
src/main/java/dev/tggamesyt/szar/EnderObsidian.java
Normal file
25
src/main/java/dev/tggamesyt/szar/EnderObsidian.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package dev.tggamesyt.szar;
|
||||
|
||||
import net.minecraft.block.AbstractBlock;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class EnderObsidian extends Block {
|
||||
|
||||
public EnderObsidian(AbstractBlock.Settings settings) {
|
||||
super(settings);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, net.minecraft.block.entity.BlockEntity blockEntity, net.minecraft.item.ItemStack stack) {
|
||||
super.afterBreak(world, player, pos, state, blockEntity, stack);
|
||||
|
||||
if (!world.isClient) {
|
||||
world.setBlockState(pos, Szar.ENDER_ORE.getDefaultState());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -390,6 +390,10 @@ public class Szar implements ModInitializer {
|
||||
entries.add(Szar.CHORUS_ENDSTONE_ITEM);
|
||||
entries.add(Szar.SMALL_CHORUS_ITEM);
|
||||
entries.add(Szar.SMALL_CHORUS_FLOWER_ITEM);
|
||||
entries.add(Szar.ENDER_OBSIDIAN_ITEM);
|
||||
entries.add(Szar.ENDER_ORE_ITEM);
|
||||
entries.add(Szar.RAW_ENDER);
|
||||
entries.add(Szar.ENDER_INGOT);
|
||||
// blueprint stuff
|
||||
entries.add(BlueprintBlocks.BLUEPRINT);
|
||||
entries.add(BlueprintBlocks.BLUEPRINT_DOOR_ITEM);
|
||||
@@ -1515,6 +1519,36 @@ public class Szar implements ModInitializer {
|
||||
RegistryKeys.BIOME,
|
||||
new Identifier(MOD_ID, "chorus_forest")
|
||||
);
|
||||
public static final Block ENDER_OBSIDIAN = Registry.register(
|
||||
Registries.BLOCK,
|
||||
new Identifier(MOD_ID, "ender_obsidian"),
|
||||
new EnderObsidian(FabricBlockSettings.copyOf(Blocks.OBSIDIAN))
|
||||
);
|
||||
public static final Item ENDER_OBSIDIAN_ITEM = Registry.register(
|
||||
Registries.ITEM,
|
||||
new Identifier(MOD_ID, "ender_obsidian"),
|
||||
new BlockItem(ENDER_OBSIDIAN, new FabricItemSettings())
|
||||
);
|
||||
public static final Block ENDER_ORE = Registry.register(
|
||||
Registries.BLOCK,
|
||||
new Identifier(MOD_ID, "ender_ore"),
|
||||
new Block(FabricBlockSettings.copyOf(Blocks.OBSIDIAN))
|
||||
);
|
||||
public static final Item ENDER_ORE_ITEM = Registry.register(
|
||||
Registries.ITEM,
|
||||
new Identifier(MOD_ID, "ender_ore"),
|
||||
new BlockItem(ENDER_ORE, new FabricItemSettings())
|
||||
);
|
||||
public static final Item RAW_ENDER = Registry.register(
|
||||
Registries.ITEM,
|
||||
new Identifier(MOD_ID, "raw_ender"),
|
||||
new Item(new FabricItemSettings())
|
||||
);
|
||||
public static final Item ENDER_INGOT = Registry.register(
|
||||
Registries.ITEM,
|
||||
new Identifier(MOD_ID, "ender_ingot"),
|
||||
new Item(new FabricItemSettings())
|
||||
);
|
||||
// Blocks
|
||||
public static final TrackerBlock TRACKER_BLOCK = Registry.register(
|
||||
Registries.BLOCK, new Identifier(MOD_ID, "tracker"),
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "szar:block/ender_obsidian"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "szar:block/ender_ore"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -202,5 +202,9 @@
|
||||
|
||||
"block.szar.chorus_endstone": "Chorus EndStone",
|
||||
"block.szar.small_chorus": "Small Chorus",
|
||||
"block.szar.small_chorus_flower": "Small Chorus Flower"
|
||||
"block.szar.small_chorus_flower": "Small Chorus Flower",
|
||||
"block.szar.ender_obsidian": "Ender Obsidian",
|
||||
"block.szar.ender_ore": "Ender Ore",
|
||||
"item.szar.raw_ender": "Raw Ender",
|
||||
"item.szar.ender_ingot": "Ender Ingot"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"all": "szar:block/ender_obsidian"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"all": "szar:block/ender_ore"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "szar:item/ender_ingot"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"parent": "szar:block/ender_obsidian"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"parent": "szar:block/ender_ore"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "szar:item/raw_ender"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 315 B |
BIN
src/main/resources/assets/szar/textures/block/ender_obsidian.png
Normal file
BIN
src/main/resources/assets/szar/textures/block/ender_obsidian.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 581 B |
BIN
src/main/resources/assets/szar/textures/block/ender_ore.png
Normal file
BIN
src/main/resources/assets/szar/textures/block/ender_ore.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 489 B |
BIN
src/main/resources/assets/szar/textures/item/ender_ingot.png
Normal file
BIN
src/main/resources/assets/szar/textures/item/ender_ingot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 367 B |
BIN
src/main/resources/assets/szar/textures/item/raw_ender.png
Normal file
BIN
src/main/resources/assets/szar/textures/item/raw_ender.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 441 B |
BIN
src/main/resources/assets/szar/textures/item/raw_ender_1.png
Normal file
BIN
src/main/resources/assets/szar/textures/item/raw_ender_1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 359 B |
@@ -3,6 +3,8 @@
|
||||
"values": [
|
||||
"szar:uranium_ore",
|
||||
"szar:niggerite_block",
|
||||
"szar:chorus_endstone"
|
||||
"szar:chorus_endstone",
|
||||
"szar:ender_ore",
|
||||
"szar:ender_obsidian"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"type": "minecraft:block",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:alternatives",
|
||||
"children": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "szar:ender_ore",
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "minecraft:match_tool",
|
||||
"predicate": {
|
||||
"enchantments": [
|
||||
{
|
||||
"enchantment": "minecraft:silk_touch",
|
||||
"levels": {
|
||||
"min": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"items": [
|
||||
"minecraft:diamond_pickaxe",
|
||||
"minecraft:netherite_pickaxe"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "szar:raw_ender",
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "minecraft:match_tool",
|
||||
"predicate": {
|
||||
"items": [
|
||||
"minecraft:netherite_pickaxe"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
9
src/main/resources/data/szar/recipes/ender_ingot.json
Normal file
9
src/main/resources/data/szar/recipes/ender_ingot.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"type": "minecraft:smelting",
|
||||
"ingredient": {
|
||||
"item": "szar:raw_ender"
|
||||
},
|
||||
"result": "szar:ender_ingot",
|
||||
"experience": 5.0,
|
||||
"cookingtime": 400
|
||||
}
|
||||
Reference in New Issue
Block a user