Everything posted by poopoodice
-
[1.16.1] Teleport with Armor set equipped
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
MatrixStack, x1, y1, x2, y2, colour
-
Issue with direction values (1.16.5)
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)
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)
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
AbstractClientPlayerEntity#getSkinType (slim/alex, default/steve)
-
Issue with direction values (1.16.5)
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...
-
Custom music disc not playing sound
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]
You can run servers and then execute commands there.
-
[solved][1.17.1] Why player.rotationPitch and player.rotationYaw is none
You should check vanilla for examples, essential stuff like these are usually renamed or replaced instead of removed. They are xRot and yRot now.
-
[solved][1.17.1] EntityClassification is none
Check Vanilla usages, it's MobCategory
-
[1.17.1] What is 1.17.1's equivalent for LootParameterSet?
LootContextParamSet
-
[SOLVED] 1.16.5 Custom inventory not saving after quitting the game.
What slots? You should post your code.
-
Duplicating Alt+F1 screen decluttering? [1.16.5]
Subscribe to RenderGameOverlayEvent and cancel correspond types when the current screen is your screen.
-
[1.17.1] Where is PacketBuffer substitute?
ByteBuf
-
[SOLVED] Sending a message to all current players [1.16.5]
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.
-
Geckolib animation
Probably something like: goalSelector.getRunningGoals().anyMatch((goal) -> goal.getGoal() instanceof MyGoal)
-
[1.16.5] Save player who placed block with TileEntity
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.
-
Geckolib animation
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
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!)
-
Geckolib animation
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
You should be able to find error messages that tells where went wrong.
-
[1.16] Client-Side run command as op
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?
-
Get entity by name
I would filter through all entities, from ServerWorld#getEntities
-
[1.16.5] How to get DedicatedServer instance on new version
ServerLifecycleHooks.getCurrentServer() Should be it
IPS spam blocked by CleanTalk.