Everything posted by MoCsabi
-
Is it okay to wait in detectAndSendChanges() method of a container?
Thank you!
-
Kicked out from game abruptly
Don't spam, he will definitely look at it, but he has to answer a lot of topics
-
Kicked out from game abruptly
So this is without Optifine?
-
Kicked out from game abruptly
You can view the logs the same way as before
-
Is it okay to wait in detectAndSendChanges() method of a container?
No, I’m doing an animation outside the container with an entity and particles.
-
Is it okay to wait in detectAndSendChanges() method of a container?
If yes, what waiting method should I use? I’m trying to make a small “animation”.
-
Summon WolfEntity with owner
Thank you so much for your help! I copied these from the processInteraction() method! entity.setTamedBy((PlayerEntity)entity.getOwner()); entity.setAttackTarget((LivingEntity)null); entity.world.setEntityState(entity, (byte)7); It's working! Thank you so much (Also I don't know how I didn't notice the setTamedBy() method...)
-
Summon WolfEntity with owner
Okay, I've done it! It helped a bit, bit its still not perfect. Now if I Sys.out isOwner(), now it says yes! So the server side is probably good. I'm probably wrong here, but I think that the client side is not working. It's not showing the collar, and not registering my clicks on the wolf, but it still moves towards me (so the serverside works). My new code: //The player is is the player using World sWorld=player.world; WolfEntity entity=EntityType.WOLF.create(sWorld); entity.moveToBlockPosAndAngles(player.getPosition(),0,0); entity.onInitialSpawn(sWorld, sWorld.getDifficultyForLocation(player.getPosition()), SpawnReason.EVENT, (ILivingEntityData)null, (CompoundNBT)null); entity.setOwnerId(itemStackWithNBT.getTag().getUniqueId("owner")); sWorld.addEntity(entity); I don't know how to fix this problem...
-
Summon WolfEntity with owner
Oh I’m so dumb... so I store the player when he opens the container? ( that’s where I can get it from parameters)
-
Summon WolfEntity with owner
Well, I need the server world to spawn in the wolf. Or you don’t need the server for the server world?
-
Summon WolfEntity with owner
But can I use Minecraft.getInstance.getIntegratedServer? Or is there another way of getting the server?
-
Summon WolfEntity with owner
Sorry, I'm new, what solution would you recommend?
-
Summon WolfEntity with owner
I'm doing this from the detectAndSendChanges() method of a container. I am looking into network pockets. Thanks for your help!
-
Summon WolfEntity with owner
I want to summon a vanilla-minecraft wolf with an owner set already. I have stored the player's UUID in an nbt tag (on an itemstack), but when I use the setOwnerID() method, the dog wont get a collar, nor can I sit it down. But what is interesting is that it still walks towards me, and telepors if I go away... I tried using updateEntity() method (both on ServerWorld and ClientWorld). If I reopen my world, the dog has a collar, and I can make it sit. I'm kinda new, so this might be terribly obvious. Thanks in advance! My code for summoning the entity: Minecraft instance= Minecraft.getInstance(); ServerWorld sWorld=Minecraft.getInstance().getIntegratedServer().getWorld(instance.player.getEntityWorld().getDimension().getType()); WolfEntity Entity=EntityType.WOLF.create(sWorld); entity.moveToBlockPosAndAngles(instance.player.getPosition(),0,0); entity.onInitialSpawn(sWorld, sWorld.getDifficultyForLocation(instance.player.getPosition()), SpawnReason.EVENT, eData, (CompoundNBT)null); entity.setOwnerId(itemStackWithNBT.getStack().getTag().getUniqueId("owner")); sWorld.addEntity(entity); sWorld.updateEntity(entity); instance.world.updateEntity(entity); //Sorry for messy code I also tried debugging using the isOwner() method, it said false.
IPS spam blocked by CleanTalk.