Cubed-Development / Modern-Warfare-Cubed

Welcome to the official GitHub Repository for Modern Warfare Cubed!
Apache License 2.0
92 stars 59 forks source link

mob spawner with mwc:soldier without weapon #333

Closed Charpyy closed 8 months ago

Charpyy commented 8 months ago

Describe the bug

Using the mwcdev16

When i use this command to make a mobspawner with soldier they spawn without weapon /setblock ~ ~-1 ~ mob_spawner 0 replace {SpawnCount:1,MaxNearbyEntities:2,SpawnRange:31,Delay:20,MinSpawnDelay:430,MaxSpawnDelay:1420,RequiredPlayerRange:50,SpawnData:{id:"mwc:soldier"}}

and idk if its true but a player from my server says that u cant hit them (sometimes)

Important if u try to put soldier/terrorist egg on a non-modified mob spawner they spawn with weapon.

image

Reproducibility

Screenshots and/or videos

No response

Logs

no logs

Debug Logs

No response

Crash Reports

No response

MWC Version

0.1 dev16

Forge Version

1.12.2 - 14.23.5.2860

Red Core Version

0.5 dev5

MixinBooter Version

8.9

Java Version

1.8 392

Java Virtual Machine

Hotspot

Operating System

Windows 11

GPU Vendor

NVIDIA

Code of Conduct

Desoroxxx commented 8 months ago

Actually after reading in detail, this is normal behavior, you are spawning just a soldier, eggs contain the data for spawning a soldier with a weapon.

However I am not familiar enough with Minecraft's commands to tell you how to create a spawner with a soldier with a weapon.

Maybe with the F3 menu and a spawner created via an egg, you could see the data that you need.