3 Commits

Author SHA1 Message Date
Flotschispielt
b8d4216005 Merge remote-tracking branch 'origin/main' 2026-02-24 17:14:54 +01:00
Flotschispielt
a157212ae0 updated ServerVersion in manifest files 2026-02-24 17:14:43 +01:00
8816741d74 Change Package Script Mod Location 2026-01-26 00:18:30 +01:00
4 changed files with 15 additions and 25 deletions

View File

@@ -19,5 +19,6 @@
"LoadBefore": {}, "LoadBefore": {},
"DisabledByDefault": false, "DisabledByDefault": false,
"IncludesAssetPack": false, "IncludesAssetPack": false,
"ServerVersion": "2026.02.19-1a311a592",
"SubPlugins": [] "SubPlugins": []
} }

View File

@@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
mvn package mvn package
mv ./target/EndermanPlugin-0.1.0.jar /home/tikaiz/.var/app/com.hypixel.HytaleLauncher/data/Hytale/UserData/Mods/ mv ./target/EndermanPlugin-0.1.0.jar /home/tikaiz/.local/share/Hytale/UserData/Mods/

View File

@@ -1,18 +1,14 @@
package com.greiflo; package com.greiflo;
import com.hypixel.hytale.component.*; import com.hypixel.hytale.component.ArchetypeChunk;
import com.hypixel.hytale.component.CommandBuffer;
import com.hypixel.hytale.component.ComponentType;
import com.hypixel.hytale.component.Store;
import com.hypixel.hytale.component.query.Query; import com.hypixel.hytale.component.query.Query;
import com.hypixel.hytale.component.system.EntityEventSystem; import com.hypixel.hytale.component.system.EntityEventSystem;
import com.hypixel.hytale.logger.HytaleLogger;
import com.hypixel.hytale.math.vector.Vector3d;
import com.hypixel.hytale.math.vector.Vector3f;
import com.hypixel.hytale.server.core.inventory.ItemStack;
import com.hypixel.hytale.server.core.modules.entity.component.DisplayNameComponent; import com.hypixel.hytale.server.core.modules.entity.component.DisplayNameComponent;
import com.hypixel.hytale.server.core.modules.entity.component.PositionDataComponent;
import com.hypixel.hytale.server.core.modules.entity.component.TransformComponent; import com.hypixel.hytale.server.core.modules.entity.component.TransformComponent;
import com.hypixel.hytale.server.core.modules.entity.damage.Damage; import com.hypixel.hytale.server.core.modules.entity.damage.Damage;
import com.hypixel.hytale.server.core.modules.entity.item.ItemComponent;
import com.hypixel.hytale.server.core.modules.entity.item.PickupItemComponent;
import com.hypixel.hytale.server.core.universe.world.storage.EntityStore; import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
import org.checkerframework.checker.nullness.compatqual.NonNullDecl; import org.checkerframework.checker.nullness.compatqual.NonNullDecl;
import org.checkerframework.checker.nullness.compatqual.NullableDecl; import org.checkerframework.checker.nullness.compatqual.NullableDecl;
@@ -31,14 +27,8 @@ public class EndermanDamageHandler extends EntityEventSystem<EntityStore, Damage
@Override @Override
public void handle(int i, @NonNullDecl ArchetypeChunk<EntityStore> archetypeChunk, @NonNullDecl Store<EntityStore> store, @NonNullDecl CommandBuffer<EntityStore> commandBuffer, @NonNullDecl Damage damage) { public void handle(int i, @NonNullDecl ArchetypeChunk<EntityStore> archetypeChunk, @NonNullDecl Store<EntityStore> store, @NonNullDecl CommandBuffer<EntityStore> commandBuffer, @NonNullDecl Damage damage) {
var ref = archetypeChunk.getReferenceTo(i); var ref = archetypeChunk.getReferenceTo(i);
TransformComponent transformComponent = store.getComponent(ref, TransformComponent.getComponentType()); TransformComponent transformComponent = store.getComponent(ref, TransformComponent.getComponentType());
var itemstack = new ItemStack("Rock_Stone", 64, null);
Holder<EntityStore> drops = ItemComponent.generateItemDrop(store, itemstack, transformComponent.getPosition().clone(), Vector3f.ZERO,0,0,0);
commandBuffer.addEntity(drops, AddReason.SPAWN);
EndermanComponent endermanTeleportComponent = store.getComponent(ref, endermanComponentType); EndermanComponent endermanTeleportComponent = store.getComponent(ref, endermanComponentType);
var entityName = store.getComponent(ref, DisplayNameComponent.getComponentType()); var entityName = store.getComponent(ref, DisplayNameComponent.getComponentType());

View File

@@ -5,18 +5,17 @@
"Description": "Enderman Plugin", "Description": "Enderman Plugin",
"Authors": [ "Authors": [
{ {
"Name": "greiflo", "Name": "It's you!"
"Email": "grflo7228@gmail.com"
},
{
"Name": "tikaiz",
"Email": "tikaiz@gmx.at"
} }
], ],
"Website": "", "Website": "",
"ServerVersion": "*", "ServerVersion": "2026.02.19-1a311a592",
"Dependencies": {}, "Dependencies": {
"OptionalDependencies": {},
},
"OptionalDependencies": {
},
"DisabledByDefault": false, "DisabledByDefault": false,
"IncludesAssetPack": false, "IncludesAssetPack": false,
"Main": "com.greiflo.EndermanPlugin" "Main": "com.greiflo.EndermanPlugin"