2 Commits

Author SHA1 Message Date
bcc90e5593 super diamond and apple
All checks were successful
Build Minecraft Mod / build (push) Successful in 4m39s
Build Minecraft Mod / release (push) Successful in 17s
2026-04-13 16:38:52 +02:00
b476d156dc capes url update 2026-04-13 16:38:30 +02:00
20 changed files with 196 additions and 16 deletions

View File

@@ -2,23 +2,23 @@
"capes": [ "capes": [
{ {
"id": "tg", "id": "tg",
"texture": "https://raw.githubusercontent.com/tggamesyt/szar/main/src/main/resources/assets/szar/textures/etc/tg_cape.png" "texture": "Magyarhttps://gitea.tggamesyt.dev/tggamesyt/szar/raw/main/src/main/resources/assets/szar/textures/etc/tg_cape.png"
}, },
{ {
"id": "gabri", "id": "gabri",
"texture": "https://raw.githubusercontent.com/tggamesyt/szar/main/src/main/resources/assets/szar/textures/etc/gabri_cape.png" "texture": "Magyarhttps://gitea.tggamesyt.dev/tggamesyt/szar/raw/main/src/main/resources/assets/szar/textures/etc/gabri_cape.png"
}, },
{ {
"id": "tg1", "id": "tg1",
"texture": "https://raw.githubusercontent.com/tggamesyt/szar/main/src/main/resources/assets/szar/textures/etc/tg_cape1.png" "texture": "Magyarhttps://gitea.tggamesyt.dev/tggamesyt/szar/raw/main/src/main/resources/assets/szar/textures/etc/tg_cape1.png"
}, },
{ {
"id": "test", "id": "test",
"texture": "https://raw.githubusercontent.com/tggamesyt/szar/main/src/main/resources/assets/szar/textures/etc/testcape.png" "texture": "Magyarhttps://gitea.tggamesyt.dev/tggamesyt/szar/raw/main/src/main/resources/assets/szar/textures/etc/testcape.png"
}, },
{ {
"id": "ciber", "id": "ciber",
"texture": "https://raw.githubusercontent.com/tggamesyt/szar/main/src/main/resources/assets/szar/textures/etc/ciber_cape.png" "texture": "Magyarhttps://gitea.tggamesyt.dev/tggamesyt/szar/raw/main/src/main/resources/assets/szar/textures/etc/ciber_cape.png"
} }
] ]
} }

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

@@ -0,0 +1,26 @@
package dev.tggamesyt.szar.client;
import dev.tggamesyt.szar.MagyarEntity;
import net.minecraft.client.render.entity.EntityRendererFactory;
import net.minecraft.client.render.entity.MobEntityRenderer;
import net.minecraft.client.render.entity.model.BipedEntityModel;
import net.minecraft.client.render.entity.model.EntityModelLayers;
import net.minecraft.util.Identifier;
public class MagyarEntityRenderer
extends MobEntityRenderer<MagyarEntity, BipedEntityModel<MagyarEntity>> {
public MagyarEntityRenderer(EntityRendererFactory.Context context) {
super(
context,
new BipedEntityModel<>(context.getPart(EntityModelLayers.PLAYER)),
0.5F
);
}
@Override
public Identifier getTexture(MagyarEntity entity) {
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

@@ -0,0 +1,56 @@
package dev.tggamesyt.szar;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.ai.goal.MeleeAttackGoal;
import net.minecraft.entity.ai.goal.WanderAroundFarGoal;
import net.minecraft.entity.attribute.DefaultAttributeContainer;
import net.minecraft.entity.attribute.EntityAttributes;
import net.minecraft.entity.damage.DamageSource;
import net.minecraft.entity.mob.MobEntity;
import net.minecraft.entity.mob.PathAwareEntity;
import net.minecraft.world.World;
public class MagyarEntity extends PathAwareEntity implements Arrestable, HunPartie {
public static boolean arrestable = false;
public MagyarEntity(EntityType<? extends PathAwareEntity> type, World world) {
super(type, world);
}
@Override
protected void initGoals() {
this.goalSelector.add(2, new FollowLeaderWanderGoal(this, 1.0D, 6.0F));
this.goalSelector.add(3, new WanderAroundFarGoal(this, 0.8D));
this.goalSelector.add(1, new MeleeAttackGoal(this, 1.0, true));
this.targetSelector.add(1, new AggroOnHitRevengeGoal(this));
this.targetSelector.add(2, new AttackEnemyHunGoal(this, "tisza"));
}
public static DefaultAttributeContainer.Builder createAttributes() {
return MobEntity.createMobAttributes()
.add(EntityAttributes.GENERIC_MAX_HEALTH, 20.0)
.add(EntityAttributes.GENERIC_MOVEMENT_SPEED, 0.25)
.add(EntityAttributes.GENERIC_ATTACK_DAMAGE, 2);
}
@Override
protected void dropLoot(DamageSource source, boolean causedByPlayer) {
var rand = this.getRandom();
if (rand.nextFloat() < 0.01F) {
this.dropItem(Szar.HUN_DISC);
}
}
@Override
public boolean isArrestable() {
return arrestable;
}
@Override
public String getTeam() {
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

@@ -0,0 +1,3 @@
{
"parent": "minecraft:item/template_spawn_egg"
}

View File

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

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"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

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

@@ -0,0 +1,14 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "minecraft:apple"
},
{
"item": "szar:super_diamond"
}
],
"result": {
"item": "szar:super_apple"
}
}

View File

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