-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
Look at the code in GhastShootFireballGoal. You need to create the fireball, configure it, then level.addFreshEntity() to spawn it.
-
You can use https://gist.github.com/ to upload larger text files.
-
By eeyorenailbag · Posted
After some time, I've managed to get it to be able to summon a ghast fireball (as a test) on keybind, and it works fine, however it just spawns the entity, rather than giving it movement. This is the current code I have to summon the entity, I just need to add motion to it. And I do apologise, I'm just incredibly stupid, idk anything about Java - _ -' public boolean handle(Supplier<NetworkEvent.Context> supplier) { NetworkEvent.Context context = supplier.get(); context.enqueueWork( () -> { ServerPlayer player = context.getSender(); ServerLevel level = player.getLevel(); EntityType.FIREBALL.spawn(level, null, null, player.blockPosition(), MobSpawnType.COMMAND, true, false); }); return true; } -
By DiegoA111234 · Posted
ok, error 413, too large, what do I do
-
-
Topics
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.