-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
[1.14.4] Fixed: Entity spawning from Events
Animefan8888 replied to thinkverse's topic in Modder Support
Post your code that you tried. -
First off dont post code that isnt yours here or anywhere without permission from the writers. Second when you render your image you specify where on your image you want to start at (x, y) then you specify where on the screen (x, y) then you give the width and height to the method. So if you want the image to have a scrolling appearance change where on the image you want to start.
-
Here's a suggestion that I've come up with remove diamond tools from having damage. In your PreInit event in your @Mod class do Items.DIAMOND_SOMETHING.setMaxDamage(0)
-
[1.12.2] Checking if a player is looking at another player
Animefan8888 replied to PapaVinny's topic in Modder Support
What do you mean here? And let's approach this problem in a different way what are you trying to do exactly? -
How do I get the damage amount through the Enchantment class?
Animefan8888 replied to Duncan2048's topic in Modder Support
Here read this. -
[1.14.4] Multiple problems with custom entity
Animefan8888 replied to Cerandior's topic in Modder Support
You've probably gotta use the CommonSetupEvent for this the server needs to know as well. As long as you don't register the boss to spawn naturally then spawning it only when the player enters the structure should work no problems. It's just the Slime spawning mechanics(certain heights etc) are controlled by a custom function registered to a Map that is private in EntitySpawnPlacementRegistry.class. At least I couldn't find a way to register your own placement type for an entity. -
[1.14.4] Multiple problems with custom entity
Animefan8888 replied to Cerandior's topic in Modder Support
A speed of 1.0 is way too high. It means 1 block per tick. To put that into retrospect the Zombie only has a base speed of ~.23. It also seems that canSpawn is called to late in the spawning process and will only deny spawning if the entity is far away from the player. In forge version 1.14.4-28.0.21 if seems impossible to do custom spawning mechanics besides using the LivingSpawnEvent.CheckSpawn event to deny the spawning. -
HarvestDropsEvent not working as expected.
Animefan8888 replied to Andrew Murdza's topic in Modder Support
Right. Does this log statement run? This is probably your problem. Your asking if a new instance of ItemStack is in the drops list. That doesn't work. -
HarvestDropsEvent not working as expected.
Animefan8888 replied to Andrew Murdza's topic in Modder Support
You need to provide the bus in the annotation. It needs to be Bus.FORGE I believe. -
1.12.2 How to turn custom grass into farmland with hoes
Animefan8888 replied to jottinger's topic in Modder Support
Instead subscribe to the UseHoeEvent and till the ground when it is your block. -
RenderGlobal#renderSky
-
Yes use Features to generate things 1 chunk or smaller. Use structures for things bigger than 1 chunk. And use Carvers for stuff like caves.
- 1 reply
-
- 1
-
A proxy is a place to put code when it only happens on one of the Sides Client or Server. A CommonProxy is stupid because your main mod class is common, almost every class file you have is a place common code resides. Therefore it makes no sense to have a CommonProxy. You use your proxy classes to run code meant for one side in a common area. So your parent file for both of them can and should be an interface.
-
Post the json and you have to put it in data.minecraft.loot_tables and it needs to be called coal_ore.json
-
Make a new thread dont necro.
-
("minecraft:coal_ore") or ("minecraft", "coal_ore")
-
You should also probably write into the packet buffer the boolean about the nose here. And then of course retrieve it where in decode. Then here get the entity from the ID and then change the nose value. This is the wrong event. Use the PlayerEvent.StartTracking
-
Just this