-
Posts
1160 -
Joined
-
Days Won
7
Everything posted by poopoodice
-
[1.15.2] Cannot Check Player Armor Inventory on Server
poopoodice replied to sirfredrick's topic in Modder Support
player.getArmorInventoryList() -
[1.15.2] Cannot Check Player Armor Inventory on Server
poopoodice replied to sirfredrick's topic in Modder Support
You can't just get the capability from the stack in slot, what if it's empty? -
I think you should be able to use RenderWorldLastEvent.Post/Pre to render your particles under some kind of condition you made.
-
WorldRenderer.renderRainSnow()
-
Make keybinds "work" only when player is not chatting or etc
poopoodice replied to wernon's topic in Modder Support
Mmmm I'm not sure but do you want to give it a try: call unpressKey() after you send the msg? -
[1.15.2] Cannot Check Player Armor Inventory on Server
poopoodice replied to sirfredrick's topic in Modder Support
Use orElseThrow instead of orElse otherwise you won't notice if there's any error. Also use tick event not PlayerEvent, or it will be called whenever a sub event of it is triggered. armorItemInSlot(int slotIn) is client side only. -
Isn't it "Render this before/after all elements are drawn"?
-
[1.16.1] How do i intercept player chat client side
poopoodice replied to theawesomeone646's topic in Modder Support
ClientChatEvent -
-
I think you may need to check the time yourself, and use ServerWorld.getServer().getPlayerList() to get all players, then use player.sendMessage() to send the message.
-
[SOLVED] [1.16.1] How to check if player can take a stack?
poopoodice replied to RubyNaxela's topic in Modder Support
-
createTileEntity in Block [1.16.1] any way to auto from registry?
poopoodice replied to jackokring's topic in Modder Support
ForgeRegistries.TILE_ENTITIES -
-
[1.16.1] Syncing item stack capability to client?
poopoodice replied to Electric's topic in Modder Support
I believe whenever there are changes being made to the tag, it will be sync to the client. What getShareTag() does is allows you to modify the tag before the message of syncing being sent. -
The modid shouldn’t be capitalised.
-
Simple way to store variables for each player in a player tick event
poopoodice replied to squidlex's topic in Modder Support
Just wondering does inner class count as a "class" for you? -
Simple way to store variables for each player in a player tick event
poopoodice replied to squidlex's topic in Modder Support
Interesting haha Edit: I misread your post. -
Simple way to store variables for each player in a player tick event
poopoodice replied to squidlex's topic in Modder Support
I'm afraid player capability is the only way to achieve this afaik. It is not as simple as storing the data in the fields in your event class (which won't work), but it is the only way I can think of. Also it is not so complicated isn't it? -
[1.16.1] Syncing item stack capability to client?
poopoodice replied to Electric's topic in Modder Support
You shouldn't be sending changes every tick, and for ItemStacks' capability syncing you will need to override getShareTag(), readShareTag(). -
I assume you are using 1.14+ (there's only one arg in 1.12), you need to pass EntityType.ENDERMAN into the first arg instead of null. Also like sciwhiz12 said you need to provide more information.
-
You're right haha, I misread my forge version 1.16.1-32.0.75 and 1.16.1-32.0.57 I was using the older version.
-
[SOLVED] [1.16.1] Block harvest level and tool is ignored.
poopoodice replied to RubyNaxela's topic in Modder Support
setRequiresTool() in AbstractBlock.Properties So canHarvestBlock() will do tool checking when block is harvest. You can also see how blocks in Blocks.java do it. -
I use high-contrast :p I'm not so sure why that did not work for you (it works for me, I just tested it), you might want to have a look at this tho it's for 1.15 but I guess it applies on 1.16 as well.
-
change the version of mapping to 20200723-1.16.1 and refresh (reimport) gradle project