Skip to content

Commit

Permalink
version up
Browse files Browse the repository at this point in the history
  • Loading branch information
hrmcngs committed Dec 10, 2024
1 parent 355de93 commit ad00da2
Show file tree
Hide file tree
Showing 20 changed files with 396 additions and 8 deletions.
2 changes: 1 addition & 1 deletion elements/AlchemyCraftBlock.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"hasGravity": false,
"isWaterloggable": false,
"creativeTab": {
"value": "CUSTOM:MagicBooks"
"value": "No creative tab entry"
},
"destroyTool": "axe",
"customDrop": {
Expand Down
2 changes: 1 addition & 1 deletion elements/AlchemyCraftBlockBlockAdded.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"_fv": 43,
"_type": "procedure",
"definition": {
"procedurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_trigger\" deletable=\"false\" x=\"40\" y=\"40\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"execute_command\"><value name=\"command\"><block type=\"text\"><field name=\"TEXT\">/summon minecraft:armor_stand ~ ~-0.5 ~ {Invisible:true,Invulnerable:true,PersistenceRequired:true,NoBasePlate:true,NoGravity:true,Small:true,DisabledSlots:4144959,Tags:[\"minecraft_armor_weapon_alchemy_craft_block_mahouzinn\"]}</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"math_dual_ops\"><field name=\"OP\">MINUS</field><value name=\"A\"><block type=\"coord_y\"></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">0.5</field></block></value></block></value><value name=\"z\"><block type=\"coord_z\"></block></value></block></next></block></xml>"
"procedurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_trigger\" deletable=\"false\" x=\"40\" y=\"40\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"execute_command\"><value name=\"command\"><block type=\"text\"><field name=\"TEXT\">summon minecraft:armor_stand ~ ~ ~ {Invisible:true,Invulnerable:true,PersistenceRequired:true,NoBasePlate:true,NoGravity:true,Small:true,DisabledSlots:4144959,Tags:[\"minecraft_armor_weapon_alchemy_craft_block_mahouzinn\"]}</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"coord_y\"></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">0.5</field></block></value></block></value><value name=\"z\"><block type=\"coord_z\"></block></value></block></next></block><block type=\"text\" x=\"241\" y=\"179\"><field name=\"TEXT\">clear</field></block><block type=\"entity_execute_command\" x=\"45\" y=\"387\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block><block type=\"spawn_entity_with_rotation_velocity\" x=\"277\" y=\"424\"><field name=\"entity\">CUSTOM:AlchemyCraftBlockEntity</field><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value><value name=\"yaw\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value><value name=\"pitch\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value><value name=\"vx\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value><value name=\"vy\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value><value name=\"vz\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value></block></xml>"
}
}
124 changes: 124 additions & 0 deletions elements/AlchemyCraftBlockEntity.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"_fv": 43,
"_type": "livingentity",
"definition": {
"mobName": "Alchemy Craft Block Entity",
"mobLabel": "",
"mobModelName": "Slime",
"mobModelTexture": "toumei.png",
"mobModelGlowTexture": "",
"solidBoundingBox": {
"fixedValue": false
},
"modelWidth": 0.1,
"modelHeight": 0.1,
"modelShadowSize": 0.1,
"mountedYOffset": 0.0,
"hasSpawnEgg": false,
"spawnEggBaseColor": {
"value": -1,
"falpha": 0.0
},
"spawnEggDotColor": {
"value": -1,
"falpha": 0.0
},
"creativeTab": {
"value": "CUSTOM:Yopkeinamono"
},
"isBoss": false,
"bossBarColor": "PINK",
"bossBarType": "PROGRESS",
"equipmentMainHand": {
"value": ""
},
"equipmentOffHand": {
"value": ""
},
"equipmentHelmet": {
"value": ""
},
"equipmentBody": {
"value": ""
},
"equipmentLeggings": {
"value": ""
},
"equipmentBoots": {
"value": ""
},
"mobBehaviourType": "Mob",
"mobCreatureType": "UNDEFINED",
"attackStrength": 3,
"attackKnockback": 0.0,
"knockbackResistance": 0.0,
"movementSpeed": 0.3,
"stepHeight": 0.6,
"armorBaseValue": 0.0,
"trackingRange": 64,
"followRange": 16,
"health": 10,
"xpAmount": 0,
"waterMob": false,
"flyingMob": false,
"guiBoundTo": "<NONE>",
"inventorySize": 9,
"inventoryStackSize": 64,
"disableCollisions": false,
"ridable": false,
"canControlForward": false,
"canControlStrafe": false,
"immuneToFire": false,
"immuneToArrows": false,
"immuneToFallDamage": false,
"immuneToCactus": false,
"immuneToDrowning": false,
"immuneToLightning": false,
"immuneToPotions": false,
"immuneToPlayer": false,
"immuneToExplosion": false,
"immuneToTrident": false,
"immuneToAnvil": false,
"immuneToWither": false,
"immuneToDragonBreath": false,
"mobDrop": {
"value": ""
},
"livingSound": {
"value": ""
},
"hurtSound": {
"value": "entity.generic.hurt"
},
"deathSound": {
"value": "entity.generic.death"
},
"stepSound": {
"value": ""
},
"onMobTickUpdate": {
"name": "AlchemyCraftBlockEntityOnEntityTickUpdate"
},
"hasAI": true,
"aiBase": "(none)",
"aixml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"aitasks_container\" deletable=\"false\" x=\"40\" y=\"40\"></block><block type=\"attack_on_collide\" x=\"217\" y=\"178\"><field name=\"speed\">1.2</field><field name=\"longmemory\">FALSE</field><field name=\"condition\">null,null</field><next><block type=\"wander\"><field name=\"speed\">1</field><field name=\"condition\">null,null</field><next><block type=\"attack_action\"><field name=\"callhelp\">FALSE</field><field name=\"condition\">null,null</field><next><block type=\"look_around\"><field name=\"condition\">null,null</field><next><block type=\"swim_in_water\"><field name=\"condition\">null,null</field></block></next></block></next></block></next></block></next></block></xml>",
"breedable": false,
"tameable": false,
"breedTriggerItems": [],
"ranged": false,
"rangedAttackItem": {
"value": ""
},
"rangedItemType": "Default item",
"rangedAttackInterval": 20,
"rangedAttackRadius": 10.0,
"spawnThisMob": false,
"doesDespawnWhenIdle": false,
"spawningProbability": 20,
"mobSpawningType": "monster",
"minNumberOfMobsPerGroup": 4,
"maxNumberOfMobsPerGroup": 4,
"restrictionBiomes": [],
"spawnInDungeons": false
}
}
7 changes: 7 additions & 0 deletions elements/AlchemyCraftBlockEntityOnEntityTickUpdate.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"_fv": 43,
"_type": "procedure",
"definition": {
"procedurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_trigger\" deletable=\"false\" x=\"40\" y=\"40\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"entity_execute_command\"><value name=\"command\"><block type=\"text\"><field name=\"TEXT\">tp @s ~ ~ ~ ~-.5 ~</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><next><block type=\"run_function\"><value name=\"function\"><block type=\"text\"><field name=\"TEXT\">minecraft_armor_weapon:alchemymod1</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"coord_y\"></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">0.5</field></block></value></block></value><value name=\"z\"><block type=\"coord_z\"></block></value></block></next></block></next></block></xml>"
}
}
7 changes: 7 additions & 0 deletions elements/AlchemyCraftBlockEntityRightClickedOnEntity.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"_fv": 43,
"_type": "procedure",
"definition": {
"procedurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_trigger\" deletable=\"false\" x=\"40\" y=\"40\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"compare_mcitems\"><value name=\"a\"><block type=\"entity_iteminhand\"><value name=\"entity\"><block type=\"source_entity_from_deps\"></block></value></block></value><value name=\"b\"><block type=\"mcitem_all\"><field name=\"value\">CUSTOM:DespornKenti</field></block></value></block></value><statement name=\"DO0\"><block type=\"entity_despawn\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></statement></block></next></block></xml>"
}
}
2 changes: 1 addition & 1 deletion elements/MukoukaGuard.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"_fv": 43,
"_type": "procedure",
"definition": {
"procedurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_trigger\" deletable=\"false\" x=\"40\" y=\"40\"><field name=\"trigger\">entity_attacked</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_entity_compare\"><field name=\"entity\">CUSTOM:Blackhole</field><value name=\"compareTo\"><block type=\"entity_from_deps\"></block></value></block></value><statement name=\"DO0\"><block type=\"cancel_event\"></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_entity_compare\"><field name=\"entity\">CUSTOM:Killotiru</field><value name=\"compareTo\"><block type=\"entity_from_deps\"></block></value></block></value><statement name=\"DO0\"><block type=\"cancel_event\"></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_entity_compare\"><field name=\"entity\">CUSTOM:Otiruyo</field><value name=\"compareTo\"><block type=\"entity_from_deps\"></block></value></block></value><statement name=\"DO0\"><block type=\"cancel_event\"></block></statement></block></next></block></next></block></next></block><block type=\"is_curio\" x=\"182\" y=\"377\"></block><block type=\"entity_haspotioneffect\" x=\"183\" y=\"386\"><field name=\"potion\">CUSTOM:Guard</field><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block><block type=\"itemstack_to_mcitem\" x=\"-40\" y=\"448\"></block><block type=\"set_event_result\" x=\"-83\" y=\"498\"><field name=\"result\">DEFAULT</field></block><block type=\"controls_if\" x=\"20\" y=\"530\"><value name=\"IF0\"><block type=\"entity_haspotioneffect\"><field name=\"potion\">CUSTOM:Guard</field><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><statement name=\"DO0\"><block type=\"cancel_event\"></block></statement></block><block type=\"set_event_result\" x=\"495\" y=\"510\"><field name=\"result\">DEFAULT</field></block></xml>"
"procedurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_trigger\" deletable=\"false\" x=\"40\" y=\"40\"><field name=\"trigger\">entity_attacked</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_entity_compare\"><field name=\"entity\">CUSTOM:Blackhole</field><value name=\"compareTo\"><block type=\"entity_from_deps\"></block></value></block></value><statement name=\"DO0\"><block type=\"cancel_event\"></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_entity_compare\"><field name=\"entity\">CUSTOM:Killotiru</field><value name=\"compareTo\"><block type=\"entity_from_deps\"></block></value></block></value><statement name=\"DO0\"><block type=\"cancel_event\"></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_entity_compare\"><field name=\"entity\">CUSTOM:Otiruyo</field><value name=\"compareTo\"><block type=\"entity_from_deps\"></block></value></block></value><statement name=\"DO0\"><block type=\"cancel_event\"></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_entity_compare\"><field name=\"entity\">CUSTOM:AlchemyCraftBlockEntity</field><value name=\"compareTo\"><block type=\"entity_from_deps\"></block></value></block></value><statement name=\"DO0\"><block type=\"cancel_event\"></block></statement></block></next></block></next></block></next></block></next></block><block type=\"is_curio\" x=\"182\" y=\"377\"></block><block type=\"entity_haspotioneffect\" x=\"183\" y=\"386\"><field name=\"potion\">CUSTOM:Guard</field><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block><block type=\"itemstack_to_mcitem\" x=\"-40\" y=\"448\"></block><block type=\"set_event_result\" x=\"-83\" y=\"498\"><field name=\"result\">DEFAULT</field></block><block type=\"set_event_result\" x=\"495\" y=\"510\"><field name=\"result\">DEFAULT</field></block><block type=\"controls_if\" x=\"68\" y=\"553\"><value name=\"IF0\"><block type=\"entity_haspotioneffect\"><field name=\"potion\">CUSTOM:Guard</field><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><statement name=\"DO0\"><block type=\"cancel_event\"></block></statement></block></xml>"
}
}
2 changes: 1 addition & 1 deletion elements/SkinOfDragonTick.mod.json

Large diffs are not rendered by default.

74 changes: 74 additions & 0 deletions minecraft_armor_weapon.mcreator
Original file line number Diff line number Diff line change
Expand Up @@ -8957,6 +8957,78 @@
],
"dependencies": []
}
},
{
"name": "AlchemyCraftBlockEntity",
"type": "livingentity",
"sortid": 590,
"compiles": true,
"locked_code": false,
"registry_name": "alchemy_craft_block_entity",
"metadata": {
"files": [
"src/main/java/minecraftarmorweapon/entity/AlchemyCraftBlockEntityEntity.java",
"src/main/java/minecraftarmorweapon/client/renderer/AlchemyCraftBlockEntityRenderer.java"
]
}
},
{
"name": "AlchemyCraftBlockEntityOnEntityTickUpdate",
"type": "procedure",
"sortid": 591,
"compiles": true,
"locked_code": false,
"registry_name": "alchemy_craft_block_entity_on_entity_tick_update",
"metadata": {
"files": [
"src/main/java/minecraftarmorweapon/procedures/AlchemyCraftBlockEntityOnEntityTickUpdateProcedure.java"
],
"dependencies": [
{
"name": "entity",
"type": "entity"
},
{
"name": "x",
"type": "number"
},
{
"name": "y",
"type": "number"
},
{
"name": "z",
"type": "number"
},
{
"name": "world",
"type": "world"
}
]
}
},
{
"name": "AlchemyCraftBlockEntityRightClickedOnEntity",
"type": "procedure",
"sortid": 592,
"compiles": true,
"locked_code": false,
"registry_name": "alchemy_craft_block_entity_right_clicked_on_entity",
"metadata": {
"files": [
"src/main/java/minecraftarmorweapon/procedures/AlchemyCraftBlockEntityRightClickedOnEntityProcedure.java"
],
"dependencies": [
{
"name": "entity",
"type": "entity"
},
{
"name": "sourceentity",
"type": "entity"
}
]
}
}
],
"variable_elements": [
Expand Down Expand Up @@ -9362,6 +9434,7 @@
"item.minecraft_armor_weapon.oninomen_helmet": "oni\u0027s mask",
"item.minecraft_armor_weapon.halloween_2023_10_31_sickle": "§6Sickle",
"item.minecraft_armor_weapon.ninjatou": "ninjato",
"entity.minecraft_armor_weapon.alchemy_craft_block_entity": "Alchemy Craft Block Entity",
"effect.minecraft_armor_weapon.test_bow_kill_effect": "test bow",
"gamerule.questTimeDuration": "Quest Time Duration",
"advancements.you_have_become_a_vampire.title": "You have become a vampire.",
Expand Down Expand Up @@ -9623,6 +9696,7 @@
"item.minecraft_armor_weapon.oninomen_helmet": "鬼の面",
"item.minecraft_armor_weapon.halloween_2023_10_31_sickle": "§6Sickle",
"item.minecraft_armor_weapon.ninjatou": "忍者刀",
"entity.minecraft_armor_weapon.alchemy_craft_block_entity": "Alchemy Craft Block Entity",
"effect.minecraft_armor_weapon.test_bow_kill_effect": "test bow",
"gamerule.questTimeDuration": "Quest Time Duration",
"advancements.you_have_become_a_vampire.title": "You have become a vampire.",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

package minecraftarmorweapon.client.renderer;

import net.minecraft.resources.ResourceLocation;
import net.minecraft.client.renderer.entity.MobRenderer;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.client.model.geom.ModelLayers;
import net.minecraft.client.model.SlimeModel;

import minecraftarmorweapon.entity.AlchemyCraftBlockEntityEntity;

public class AlchemyCraftBlockEntityRenderer extends MobRenderer<AlchemyCraftBlockEntityEntity, SlimeModel<AlchemyCraftBlockEntityEntity>> {
public AlchemyCraftBlockEntityRenderer(EntityRendererProvider.Context context) {
super(context, new SlimeModel(context.bakeLayer(ModelLayers.SLIME)), 0.1f);
}

@Override
public ResourceLocation getTextureLocation(AlchemyCraftBlockEntityEntity entity) {
return new ResourceLocation("minecraft_armor_weapon:textures/entities/toumei.png");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@

package minecraftarmorweapon.entity;

import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.network.PlayMessages;
import net.minecraftforge.network.NetworkHooks;

import net.minecraft.world.level.Level;
import net.minecraft.world.entity.monster.Monster;
import net.minecraft.world.entity.ai.attributes.Attributes;
import net.minecraft.world.entity.ai.attributes.AttributeSupplier;
import net.minecraft.world.entity.MobType;
import net.minecraft.world.entity.Mob;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.damagesource.DamageSource;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.network.protocol.Packet;

import minecraftarmorweapon.procedures.AlchemyCraftBlockEntityOnEntityTickUpdateProcedure;

import minecraftarmorweapon.init.MinecraftArmorWeaponModEntities;

public class AlchemyCraftBlockEntityEntity extends Monster {
public AlchemyCraftBlockEntityEntity(PlayMessages.SpawnEntity packet, Level world) {
this(MinecraftArmorWeaponModEntities.ALCHEMY_CRAFT_BLOCK_ENTITY.get(), world);
}

public AlchemyCraftBlockEntityEntity(EntityType<AlchemyCraftBlockEntityEntity> type, Level world) {
super(type, world);
maxUpStep = 0.6f;
xpReward = 0;
setNoAi(false);
setPersistenceRequired();
}

@Override
public Packet<?> getAddEntityPacket() {
return NetworkHooks.getEntitySpawningPacket(this);
}

@Override
protected void registerGoals() {
super.registerGoals();

}

@Override
public MobType getMobType() {
return MobType.UNDEFINED;
}

@Override
public boolean removeWhenFarAway(double distanceToClosestPlayer) {
return false;
}

@Override
public SoundEvent getHurtSound(DamageSource ds) {
return ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("entity.generic.hurt"));
}

@Override
public SoundEvent getDeathSound() {
return ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("entity.generic.death"));
}

@Override
public void baseTick() {
super.baseTick();
AlchemyCraftBlockEntityOnEntityTickUpdateProcedure.execute(this.level, this.getX(), this.getY(), this.getZ(), this);
}

public static void init() {
}

public static AttributeSupplier.Builder createAttributes() {
AttributeSupplier.Builder builder = Mob.createMobAttributes();
builder = builder.add(Attributes.MOVEMENT_SPEED, 0.3);
builder = builder.add(Attributes.MAX_HEALTH, 10);
builder = builder.add(Attributes.ARMOR, 0);
builder = builder.add(Attributes.ATTACK_DAMAGE, 3);
builder = builder.add(Attributes.FOLLOW_RANGE, 16);
return builder;
}
}
Loading

0 comments on commit ad00da2

Please sign in to comment.