super diamond and apple
All checks were successful
Build Minecraft Mod / build (push) Successful in 4m39s
Build Minecraft Mod / release (push) Successful in 17s

This commit is contained in:
2026-04-13 16:38:52 +02:00
parent b476d156dc
commit bcc90e5593
17 changed files with 88 additions and 72 deletions

View File

@@ -6,7 +6,7 @@ minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10 yarn_mappings=1.20.1+build.10
loader_version=0.18.3 loader_version=0.18.3
# Mod Properties # Mod Properties
mod_version=26.4.13.1 mod_version=26.4.13.2
maven_group=dev.tggamesyt maven_group=dev.tggamesyt
archives_base_name=szar archives_base_name=szar
# Dependencies # Dependencies

View File

@@ -1,16 +1,16 @@
package dev.tggamesyt.szar.client; package dev.tggamesyt.szar.client;
import dev.tggamesyt.szar.OrbanEntity; import dev.tggamesyt.szar.MagyarEntity;
import net.minecraft.client.render.entity.EntityRendererFactory; import net.minecraft.client.render.entity.EntityRendererFactory;
import net.minecraft.client.render.entity.MobEntityRenderer; import net.minecraft.client.render.entity.MobEntityRenderer;
import net.minecraft.client.render.entity.model.BipedEntityModel; import net.minecraft.client.render.entity.model.BipedEntityModel;
import net.minecraft.client.render.entity.model.EntityModelLayers; import net.minecraft.client.render.entity.model.EntityModelLayers;
import net.minecraft.util.Identifier; import net.minecraft.util.Identifier;
public class OrbanEntityRenderer public class MagyarEntityRenderer
extends MobEntityRenderer<OrbanEntity, BipedEntityModel<OrbanEntity>> { extends MobEntityRenderer<MagyarEntity, BipedEntityModel<MagyarEntity>> {
public OrbanEntityRenderer(EntityRendererFactory.Context context) { public MagyarEntityRenderer(EntityRendererFactory.Context context) {
super( super(
context, context,
new BipedEntityModel<>(context.getPart(EntityModelLayers.PLAYER)), new BipedEntityModel<>(context.getPart(EntityModelLayers.PLAYER)),
@@ -19,8 +19,8 @@ public class OrbanEntityRenderer
} }
@Override @Override
public Identifier getTexture(OrbanEntity entity) { public Identifier getTexture(MagyarEntity entity) {
return new Identifier("szar", "textures/entity/orban.png"); return new Identifier("szar", "textures/entity/magyar.png");
} }
} }

View File

@@ -552,6 +552,10 @@ public class SzarClient implements ClientModInitializer {
OrbanEntityType, OrbanEntityType,
OrbanEntityRenderer::new OrbanEntityRenderer::new
); );
EntityRendererRegistry.register(
MagyarEntityType,
MagyarEntityRenderer::new
);
EntityRendererRegistry.register( EntityRendererRegistry.register(
Szar.StalinEntityType, Szar.StalinEntityType,
StalinEntityRenderer::new StalinEntityRenderer::new

View File

@@ -6,6 +6,7 @@
"szar:efn", "szar:efn",
"szar:hello", "szar:hello",
"szar:erika", "szar:erika",
"szar:ussr" "szar:ussr",
"szar:hun_disc"
] ]
} }

View File

@@ -1,8 +1,6 @@
package dev.tggamesyt.szar; package dev.tggamesyt.szar;
import net.minecraft.entity.EntityData;
import net.minecraft.entity.EntityType; import net.minecraft.entity.EntityType;
import net.minecraft.entity.SpawnReason;
import net.minecraft.entity.ai.goal.MeleeAttackGoal; import net.minecraft.entity.ai.goal.MeleeAttackGoal;
import net.minecraft.entity.ai.goal.WanderAroundFarGoal; import net.minecraft.entity.ai.goal.WanderAroundFarGoal;
import net.minecraft.entity.attribute.DefaultAttributeContainer; import net.minecraft.entity.attribute.DefaultAttributeContainer;
@@ -10,22 +8,13 @@ import net.minecraft.entity.attribute.EntityAttributes;
import net.minecraft.entity.damage.DamageSource; import net.minecraft.entity.damage.DamageSource;
import net.minecraft.entity.mob.MobEntity; import net.minecraft.entity.mob.MobEntity;
import net.minecraft.entity.mob.PathAwareEntity; import net.minecraft.entity.mob.PathAwareEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.nbt.NbtCompound;
import net.minecraft.nbt.NbtList;
import net.minecraft.nbt.NbtString;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.world.LocalDifficulty;
import net.minecraft.world.ServerWorldAccess;
import net.minecraft.world.World; import net.minecraft.world.World;
import org.jetbrains.annotations.Nullable;
public class OrbanEntity extends PathAwareEntity implements Arrestable, HunPartie { public class MagyarEntity extends PathAwareEntity implements Arrestable, HunPartie {
public static boolean arrestable = false; public static boolean arrestable = false;
public OrbanEntity(EntityType<? extends PathAwareEntity> type, World world) { public MagyarEntity(EntityType<? extends PathAwareEntity> type, World world) {
super(type, world); super(type, world);
} }
@@ -36,7 +25,7 @@ public class OrbanEntity extends PathAwareEntity implements Arrestable, HunParti
this.goalSelector.add(1, new MeleeAttackGoal(this, 1.0, true)); this.goalSelector.add(1, new MeleeAttackGoal(this, 1.0, true));
this.targetSelector.add(1, new AggroOnHitRevengeGoal(this)); this.targetSelector.add(1, new AggroOnHitRevengeGoal(this));
this.targetSelector.add(2, new AttackEnemyHunGoal(this, "fidesz")); this.targetSelector.add(2, new AttackEnemyHunGoal(this, "tisza"));
} }
@@ -62,6 +51,6 @@ public class OrbanEntity extends PathAwareEntity implements Arrestable, HunParti
@Override @Override
public String getTeam() { public String getTeam() {
return "fidesz"; return "tisza";
} }
} }

View File

@@ -43,6 +43,7 @@ import net.minecraft.entity.data.TrackedDataHandlerRegistry;
import net.minecraft.entity.decoration.painting.PaintingVariant; import net.minecraft.entity.decoration.painting.PaintingVariant;
import net.minecraft.entity.effect.StatusEffect; import net.minecraft.entity.effect.StatusEffect;
import net.minecraft.entity.effect.StatusEffectInstance; import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.entity.passive.VillagerEntity; import net.minecraft.entity.passive.VillagerEntity;
import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.*; import net.minecraft.item.*;
@@ -295,6 +296,15 @@ public class Szar implements ModInitializer {
.dimensions(EntityDimensions.fixed(0.6F, 1.8F)) .dimensions(EntityDimensions.fixed(0.6F, 1.8F))
.build() .build()
); );
public static final EntityType<MagyarEntity> MagyarEntityType =
Registry.register(
Registries.ENTITY_TYPE,
new Identifier(MOD_ID, "magyar"),
FabricEntityTypeBuilder
.create(SpawnGroup.CREATURE, MagyarEntity::new)
.dimensions(EntityDimensions.fixed(0.6F, 1.8F))
.build()
);
public static final EntityType<StalinEntity> StalinEntityType = public static final EntityType<StalinEntity> StalinEntityType =
Registry.register( Registry.register(
Registries.ENTITY_TYPE, Registries.ENTITY_TYPE,
@@ -405,6 +415,8 @@ public class Szar implements ModInitializer {
entries.add(Szar.ENDER_ORE_ITEM); entries.add(Szar.ENDER_ORE_ITEM);
entries.add(Szar.RAW_ENDER); entries.add(Szar.RAW_ENDER);
entries.add(Szar.ENDER_INGOT); entries.add(Szar.ENDER_INGOT);
entries.add(Szar.SUPER_DIAMOND);
entries.add(Szar.SUPER_APPLE);
// blueprint stuff // blueprint stuff
entries.add(BlueprintBlocks.BLUEPRINT); entries.add(BlueprintBlocks.BLUEPRINT);
entries.add(BlueprintBlocks.BLUEPRINT_DOOR_ITEM); entries.add(BlueprintBlocks.BLUEPRINT_DOOR_ITEM);
@@ -454,6 +466,7 @@ public class Szar implements ModInitializer {
entries.add(Szar.USSR_DISC); entries.add(Szar.USSR_DISC);
// politics // politics
entries.add(Szar.ORBAN_SPAWNEGG); entries.add(Szar.ORBAN_SPAWNEGG);
entries.add(Szar.MAGYAR_SPAWNEGG);
entries.add(Szar.HUN_DISC); entries.add(Szar.HUN_DISC);
// racism // racism
if (showRacist) { if (showRacist) {
@@ -853,6 +866,10 @@ public class Szar implements ModInitializer {
OrbanEntityType, OrbanEntityType,
OrbanEntity.createAttributes() OrbanEntity.createAttributes()
); );
FabricDefaultAttributeRegistry.register(
MagyarEntityType,
MagyarEntity.createAttributes()
);
FabricDefaultAttributeRegistry.register( FabricDefaultAttributeRegistry.register(
CommunistEntityType, CommunistEntityType,
CommunistEntity.createAttributes() CommunistEntity.createAttributes()
@@ -1572,6 +1589,25 @@ public class Szar implements ModInitializer {
new Identifier(MOD_ID, "ender_ingot"), new Identifier(MOD_ID, "ender_ingot"),
new Item(new FabricItemSettings()) new Item(new FabricItemSettings())
); );
public static final Item SUPER_DIAMOND = Registry.register(
Registries.ITEM,
new Identifier(MOD_ID, "super_diamond"),
new Item(new FabricItemSettings())
);
public static final Item SUPER_APPLE = Registry.register(
Registries.ITEM,
new Identifier(MOD_ID, "super_apple"),
new Item(new FabricItemSettings().food(
new FoodComponent.Builder()
.hunger(20)
.alwaysEdible()
.saturationModifier(20F)
.statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION,10, 255 ), 1F)
.statusEffect(new StatusEffectInstance(StatusEffects.HEALTH_BOOST,120, 4 ), 1F)
.statusEffect(new StatusEffectInstance(StatusEffects.RESISTANCE,120, 8), 1F)
.build()
))
);
// Blocks // Blocks
public static final TrackerBlock TRACKER_BLOCK = Registry.register( public static final TrackerBlock TRACKER_BLOCK = Registry.register(
Registries.BLOCK, new Identifier(MOD_ID, "tracker"), Registries.BLOCK, new Identifier(MOD_ID, "tracker"),
@@ -2357,6 +2393,16 @@ public class Szar implements ModInitializer {
new Item.Settings() new Item.Settings()
) )
); );
public static final Item MAGYAR_SPAWNEGG = Registry.register(
Registries.ITEM,
new Identifier(MOD_ID, "magyar_spawn_egg"),
new SpawnEggItem(
MagyarEntityType,
0x24B573,
0xED4551,
new Item.Settings()
)
);
public static final Item HITTER_SPAWNEGG = Registry.register( public static final Item HITTER_SPAWNEGG = Registry.register(
Registries.ITEM, Registries.ITEM,
new Identifier(MOD_ID, "hitler_spawn_egg"), new Identifier(MOD_ID, "hitler_spawn_egg"),

View File

@@ -207,6 +207,8 @@
"block.szar.ender_ore": "Ender Ore", "block.szar.ender_ore": "Ender Ore",
"item.szar.raw_ender": "Raw Ender", "item.szar.raw_ender": "Raw Ender",
"item.szar.ender_ingot": "Ender Ingot", "item.szar.ender_ingot": "Ender Ingot",
"item.szar.super_diamond": "Super Diamond",
"item.szar.super_apple": "Super Apple",
"advancement.szar.april_game_beaten.title": "We are so back", "advancement.szar.april_game_beaten.title": "We are so back",
"advancement.szar.april_game_beaten.description": "Beat the game on april 1st to flip the game back.", "advancement.szar.april_game_beaten.description": "Beat the game on april 1st to flip the game back.",
@@ -215,5 +217,6 @@
"entity.szar.magyar": "Magyar Péter", "entity.szar.magyar": "Magyar Péter",
"item.szar.hun_disc": "Music Disc", "item.szar.hun_disc": "Music Disc",
"item.szar.hun_disc.desc": "Kölcsey Ferenc - Hungarian Anthem", "item.szar.hun_disc.desc": "Kölcsey Ferenc - Hungarian Anthem",
"item.szar.orban_spawn_egg": "Orbán Spawn Egg" "item.szar.orban_spawn_egg": "Orbán Spawn Egg",
"item.szar.magyar_spawn_egg": "Magyar Spawn Egg"
} }

View File

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

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 895 B

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 848 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 970 B

View File

@@ -1,13 +1,5 @@
{ {
"type": "minecraft:crafting_shaped", "type": "minecraft:crafting_shaped",
"ingredients": [
{
"item": "minecraft:gunpowder"
},
{
"item": "minecraft:iron_nugget"
}
],
"pattern": [ "pattern": [
"PPP", "PPP",
"BBB", "BBB",

View File

@@ -1,23 +1,14 @@
{ {
"type": "minecraft:crafting_shaped", "type": "minecraft:crafting_shapeless",
"pattern": [ "ingredients": [
"NEN", {
"EDN", "item": "minecraft:apple"
"NEN"
],
"key": {
"N": {
"item": "minecraft:netherite_ingot"
}, },
"D": { {
"item": "minecraft:diamond" "item": "szar:super_diamond"
},
"E": {
"item": "szar:ender_ingot"
} }
}, ],
"result": { "result": {
"item": "szar:super_diamond", "item": "szar:super_apple"
"count": 1
} }
} }

View File

@@ -1,33 +1,23 @@
{ {
"type": "minecraft:crafting_shaped", "type": "minecraft:crafting_shaped",
"ingredients": [
{
"item": "minecraft:gunpowder"
},
{
"item": "minecraft:iron_nugget"
}
],
"pattern": [ "pattern": [
"PPP", "NEN",
"BBB", "EDN",
"LRB" "NEN"
], ],
"key": { "key": {
"P": { "N": {
"tag": "minecraft:planks" "item": "minecraft:netherite_ingot"
}, },
"B": { "D": {
"item": "minecraft:iron_block" "item": "minecraft:diamond"
}, },
"L": { "E": {
"item": "minecraft:leather" "item": "szar:ender_ingot"
},
"R": {
"item": "minecraft:redstone"
} }
}, },
"result": { "result": {
"item": "szar:ak47" "item": "szar:super_diamond",
"count": 1
} }
} }