get update from school pc since github banned us :(

This commit is contained in:
2026-03-31 14:00:23 +02:00
parent 6fc34318bf
commit 99a04d5b43
21 changed files with 173 additions and 3 deletions

View File

@@ -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

View 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());
}
}
}

View File

@@ -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"),

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "szar:block/ender_obsidian"
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "szar:block/ender_ore"
}
}
}

View File

@@ -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"
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/cube_all",
"textures": {
"all": "szar:block/ender_obsidian"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/cube_all",
"textures": {
"all": "szar:block/ender_ore"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "szar:item/ender_ingot"
}
}

View File

@@ -0,0 +1,3 @@
{
"parent": "szar:block/ender_obsidian"
}

View File

@@ -0,0 +1,3 @@
{
"parent": "szar:block/ender_ore"
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "szar:item/raw_ender"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

View File

@@ -3,6 +3,8 @@
"values": [
"szar:uranium_ore",
"szar:niggerite_block",
"szar:chorus_endstone"
"szar:chorus_endstone",
"szar:ender_ore",
"szar:ender_obsidian"
]
}

View File

@@ -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"
]
}
}
]
}
]
}
]
}
]
}

View File

@@ -0,0 +1,9 @@
{
"type": "minecraft:smelting",
"ingredient": {
"item": "szar:raw_ender"
},
"result": "szar:ender_ingot",
"experience": 5.0,
"cookingtime": 400
}