-
Posts
1160 -
Joined
-
Days Won
7
Everything posted by poopoodice
-
[1.16.3] Chuck Capability Not Registering
poopoodice replied to BeardlessBrady's topic in Modder Support
An instance of your capability -
Creating a new java file in Intellij makes an empty file
poopoodice replied to Kiljaeden053's topic in Modder Support
-
I think you will need to register some essential attributes like health.. etc.
-
Does EntityBurnBySunlightEvent sounds workable?
poopoodice replied to poopoodice's topic in Suggestions
The problem is that will remove the fire effect even if the effect is not caused by the sunlight. The purpose of this event is to allow user to modify the duration of the effect caused by the sunlight, and not to remove it as the source of the fire can be lava, enchantments, flint and steel...etc. And if like you said if you check it in the LivingUpdateEvent, and manually put out the fire if the entity is in daylight, they can literally swim in lava, or walk on fire without getting burned, which is not desired. Thanks for the reply. -
[1.15.2] Tile Entity Re-Creating on GUI Open
poopoodice replied to Jack Richard's topic in Modder Support
You can send data from client (in this case screen), to the server (container/tileentity) using packets. And no, please read what he said again: -
[1.15.2] Tile Entity Re-Creating on GUI Open
poopoodice replied to Jack Richard's topic in Modder Support
Have you save and read the information you've stored in the tileentity using write() and read()? -
Hello! As title, I have an idea about "EntityBurnBySunlightEvent", which is triggered when entities like zombies, skeletons, and phantoms tries to burn under sunlight. I also noticed they are hard coded into each of their own livingTick() which means if the event is added, I will either trigger the event in every entity class that burns, or add a method in LivingEntity (since not every entity that burns are MonsterEntity). For example: public void setBurnBySunlight(int ticks) { ticks = ...EntityBurnBySunlightEvent(this, ticks); this.setFire(ticks); } call this, instead of directly call setFire() in their livingTick() The EntityBurnBySunlightEvent will have two parameters: (LivingEntity) and (Ticks to burn), and will be located in net.minecraftforge.event.entity.living.LivingEvent The user can modify the ticks that the entity given is going to burn, which allows the user to set it to 0 in order to prevent the burning of entity from happening. This will be helpful for people that wants to cancel the burn update from the sunlight, by not affecting the burn effect from other sources. Any suggestions for this? Thanks
-
[1.15.2] How to make a block transparent?
poopoodice replied to Megaton_216_'s topic in Modder Support
LARGE_CRYSTAL.get() to get the block from the registry object. -
[1.16.3] Chuck Capability Not Registering
poopoodice replied to BeardlessBrady's topic in Modder Support
I think they should be registered in common setup. -
It's better for you to have a repository, as it is good for your code management and all other people can view your code without downloading them.
-
RegisterCommandsEvent
-
Please have some research(google or on this forum), there are tonnes of results that have exact same problem with you.
-
Repo -> repository (can be online hosted by websites like github, bitbucket...etc) I'm basically asking you to provide all your code and assets.
-
Are you sure the registry name of the item and the recipe are the same, or are there any errors shown in the log during loading the recipes? If not a repo is really helpful for others to find the problem for you.
-
Item.Properties.food() All you want are in Items.java
-
SOLVED. getItemById giving me the wrong items? (1.16.1)
poopoodice replied to SolidCraft's topic in Modder Support
You can get vanilla items directly from Items, instead of using numeric ids (which shouldn't be used). -
It gives you the blockpos so you can access the tileentity in the world.
-
LootContext.Builder.get(lootparam)
-
[1.16.2][Solved] Crash when creating/ joining world
poopoodice replied to Boy132's topic in Modder Support
For me both of your pastes are empty. -
The FIFTH parameter takes an int, and isn't this solved from your last post?
-
Help with Keybinds in Forge for 1.16.2
poopoodice replied to constantdeenos's topic in Modder Support
Maybe it is called when press/release? -
It is required when no variable is created (WOOD).
-
As a reference.
-
Override renderButton in the button and render it yourself. to add the button to the screen use addButton()
-
We don't know what are and where these came from: but apparently, handStack.shrink(1); makes whatever this itemstack came from count - 1