-
Posts
1160 -
Joined
-
Days Won
7
Everything posted by poopoodice
-
[1.16.1] Teleport with Armor set equipped
poopoodice replied to Silent_snowy's topic in Modder Support
In ClientTickEvent -> check for key bind and is valid (has chorus fruit, is wearing the armour) -> send a packet to the server -> check if it's valid again -> perform tp -
Help with drawning stuff into minecraft hud
poopoodice replied to Daviipkp's topic in Modder Support
MatrixStack, x1, y1, x2, y2, colour -
Issue with direction values (1.16.5)
poopoodice replied to Babelincoln1809's topic in Modder Support
If the code does not even compile, how do you know it's not working? They are final in 1.16. -
Issue with direction values (1.16.5)
poopoodice replied to Babelincoln1809's topic in Modder Support
But if I understand it correctly, the getLookVec returns the normalized vec, means the value of y will affect the distance of x and z. -
Issue with direction values (1.16.5)
poopoodice replied to Babelincoln1809's topic in Modder Support
Well... just simply something like pitch = player.pitch player.pitch = 0 vec = player.getLookVec player.pitch = pitch Should work, I guess. -
[Solved] [1.16.5] Get the player's skin type
poopoodice replied to litehed's topic in Modder Support
AbstractClientPlayerEntity#getSkinType (slim/alex, default/steve) -
Issue with direction values (1.16.5)
poopoodice replied to Babelincoln1809's topic in Modder Support
Gets the normalized vector from player's pitch and yaw, so a simple way would be change the pitch to the horizontal value (I think it is 0), get the angle, and then change it back. Otherwise just do some simple trig... -
They are loaded upon the class is being used. So you need the "static void register event" there if you are doing this way, but it is not recommended
-
[1.16.5] Executing a command as server console [SOLVED]
poopoodice replied to Novality's topic in Modder Support
You can run servers and then execute commands there. -
[solved][1.17.1] EntityClassification is none
poopoodice replied to peanutexexe's topic in Modder Support
Check Vanilla usages, it's MobCategory -
[1.17.1] What is 1.17.1's equivalent for LootParameterSet?
poopoodice replied to Q22_'s topic in Modder Support
LootContextParamSet -
Duplicating Alt+F1 screen decluttering? [1.16.5]
poopoodice replied to Turtledove's topic in Modder Support
Subscribe to RenderGameOverlayEvent and cancel correspond types when the current screen is your screen. -
[1.17.1] Where is PacketBuffer substitute?
poopoodice replied to peanutexexe's topic in Modder Support
ByteBuf -
[SOLVED] Sending a message to all current players [1.16.5]
poopoodice replied to Novality's topic in Modder Support
If you do it on the server, you can call ServerWorld#getPlayers and then iterate through the collection, sends a message to each player. If this somehow triggers on the client, you need a packet. -
Probably something like: goalSelector.getRunningGoals().anyMatch((goal) -> goal.getGoal() instanceof MyGoal)
-
[1.16.5] Save player who placed block with TileEntity
poopoodice replied to alowave's topic in Modder Support
It's just named differently, but the same method. From what I can see you are saving the player to the block not the tileentity (otherwise new placer will replace old placers!), and Since the placer can be null, this does not make sense, just check for placer instanceof PlayerEntity. -
You should check if the entity is moving, not the animation event or whatever it is... (you can check if the previous position is different as the current position) And GoalSelector.getRunningGoals gives you all goals that are currently executing.
-
[1.16.5] Save player who placed block with TileEntity
poopoodice replied to alowave's topic in Modder Support
You can override setPlaceBy in your block class, and then save the placer to the te there (the placer can be other entities, or null!) -
You need some condition checking here, e.g. if walking add walk animation, and only add eating animation when eating... etc
-
[Solved][1.16.5] A question about Blockstates JSON files
poopoodice replied to MonkeyKnight's topic in Modder Support
You should be able to find error messages that tells where went wrong. -
The readString you are using is client only, you should use the one that takes an int as its argument. Have you register you packet?
-
I would filter through all entities, from ServerWorld#getEntities
-
[1.16.5] How to get DedicatedServer instance on new version
poopoodice replied to alowave's topic in Modder Support
ServerLifecycleHooks.getCurrentServer() Should be it