-
Posts
1160 -
Joined
-
Days Won
7
Everything posted by poopoodice
-
[1.16.5] Refreshing capability between server and client
poopoodice replied to ImNotJahan's topic in Modder Support
Is the event triggered? -
[1.17.1] Registering client sided event handler
poopoodice replied to GnRSlashSP's topic in Modder Support
Because the event fires on Mod bus not Forge. -
[1.17] Help about BlockEntityWithoutLevelRenderer
poopoodice replied to Zemelua's topic in Modder Support
You can rotate the matrix with the cameraOrientation in EntityRendereManager. -
a problem with getLastDamageSource() method
poopoodice replied to BlueKnight009's topic in Modder Support
This can be null. Post the crash log please. -
Sorry for the confusion, I mean the Item.Properties where you pass in to Item's constructor :P
-
What do you mean? I thought you were asking how to bind your own ISTER to the item?
-
You can set it through Item Properties
-
Minecraft.java is a class only exists on client, so does getEyePosition and partial ticks, these will crash the server.
-
1. Depends what you want to do. 2. The method you are using is for raytracing a single block, the last three parameters are BlockPos, VoxelShape, and BlockState
-
You can possibly replace their target goals.
-
[1.16.5] Raytrace Block Position and Summon Lightning
poopoodice replied to jaxbymc42's topic in Modder Support
I can't tell if you are doing ray tracing right, but there's already a method in Entity called getLookVec or something similar. Secondly, you've create the lightning entities but had never add them to the world. Use World#addEntity -
I think there's a pr for this... long time ago. You have to implement it yourself.
-
[1.17.1] .harvestTool(ToolType.PICKAXE) not working
poopoodice replied to Noah40's topic in Modder Support
Exactly at the right side of the screenshot.... -
There's a discussion a while ago
-
Unable to set Required Tool Type for Custom Block [1.17.1]
poopoodice replied to TheBeefBai's topic in Modder Support
Have a look at vanilla usage: requiresCorrectToolForDrops() Also check this out https://forums.minecraftforge.net/search/?&q=require tool&type=forums_topic&search_and_or=or&sortby=relevancy you need to add them to the block tags. @Luis_ST explained a lot in these posts... -
get coordinates of the block the player looking at
poopoodice replied to DoctorG_Mystery's topic in Modder Support
You can't just get the values from nowhere... use the parameter of the method, all the things you need are stored in that ItemUseContext, the placer (can be null!), world....etc -
Either checks from 0 or from the end.
-
Mod id should not be capitalized, and PlayerTickEvent is both sided event (from my experience it causes problems in mp).
-
[1.17.1] Help with Dynamic Model Box Positions
poopoodice replied to uSkizzik's topic in Modder Support
Use else if otherwise those elses are always called... bool; x = 5; if (x == 5) { bool = true; } else { bool = false; } if (x == 6) { bool = true; } else { // Always trigger if x is not 6 bool = false; } // bool is always false if x is not 6 -
I would render a skull item (easiest way I can think of), or, look at how it captures the player's skin.
-
It's vertical scale afaik
-
[1.16.1] Teleport with Armor set equipped
poopoodice replied to Silent_snowy's topic in Modder Support
You should be using ClientTickEvent, since keybinding is only on client. The you need to check for phase otherwise it will be triggered twice a tick (I'm not sure which one is better, start or end), and also it's probably better to use PlayerEntity#getItemStackFromSlot here, for armour checking I'm sure that the first slot is not gonna be the place for a chestplate, so use the method above. Main inventory does not contain other storages like main/off hand, so you can either loop through the player's all items yourself, or use IInventory#hasAny. About key bindings you can save your own instance of KeyBinding in a static final field (check GameSettings.java), and then check if it is pressed like how Minecraft does in Minecraft#processKeybinds. Packets: https://mcforge.readthedocs.io/en/latest/networking/simpleimpl/ Finally you are going to check all the stuff again (armour equipped, has the chorus fruit...) when the packet is received on the server, then process the tp (have a look at the chorus fruit , or maybe Enderman).