-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
If you look at his most recent code. He doesn't override the tick method at all and it goes back into the super classes tick method which is RedstoneOreBlock::tick The Cactus blocks Collision is slightly bigger than what is visual and thus allows the player to move ever so slightly inside of it and that is what is considered a collision. Take a look at CactusBlock for how it does that.
-
[1.15] Save data to world using WorldSavedData
Animefan8888 replied to KidKoderMod033109's topic in Modder Support
Why? It's your code you can manipulate it any way you want. You can't do that using the forge config system. -
[1.15.2] Throwable Entity Rendering Problems [SOLVED]
Animefan8888 replied to Peerius's topic in Modder Support
Use the SpriteRenderer I dislike it when people cherry pick lines from the log/console. Was this the whole error? Was there a "Caused by..." line? But this error sounds like the Entity being spawned on the Client wasn't your entity and instead a Pig was spawned. This happens when an Entity of an unregistered EntityType is requested to spawn. Which means your EntityType you are using was not registered. Which leads me to this. This is not how registration works. EntityTypes are singleton values. You can't just create another one and expect it to work. You have to use the instance that you registered. Typically this is done with the @ObejctHolder annotation. You can read the documentation here. -
[1.15.2] Help with animating player model
Animefan8888 replied to GarlicBread's topic in Modder Support
Depends on what exactly you want to do. Each Model is made of a collection of ModelRenderers each are a rectangular prism and have their own rotations. So yes you can rotate each "limb". But those limbs are strictly speaking limited. IE for a player a leg is one limb you can't bend it in the middle. Honestly just write the Model class yourself. But if you really need to use a program(visual way) there are plenty out there. Also you should use the RenderPlayerEvent. Events are documented here. What you want to do is cancel the event and render your own model under the circumstances that it should be rendered IE. if (playerIsSitting()) { // Cancel Event // Render Sitting Player } -
[1.15.2] Replace stone to custom block in own biome
Animefan8888 replied to SSKirillSS's topic in Modder Support
I'm not sure. If I had more time I could look into it. Why not look into it yourself -
Sorry 1.12.2 is no longer supported on this forum due to it's age. Please update to a more modern version of Minecraft. For more information check out the link at the top of the page about Forge's LTS.
-
[1.15.2] Replace stone to custom block in own biome
Animefan8888 replied to SSKirillSS's topic in Modder Support
It looks like the easiest way to do this would be to add a feature to your biome(s) that replace all of the Stone blocks with whatever block you want. However if you feel adventurous feel free to look into GenerationSettings::defaultBlock and changing that between the block that you want to use and the vanilla Stone block. -
[1.15.2] Throwable Entity Rendering Problems [SOLVED]
Animefan8888 replied to Peerius's topic in Modder Support
What actually is your current problem? -
Render an image based on camera position
Animefan8888 replied to Pacmandevil's topic in Modder Support
Why are you sending the texture to the server anyways? The server doesn't deal with assets at all. Are you trying to make this image the same across all players? What exactly are you trying to do. Why are you needing to generate an image? More specifically why can't this be done before runtime? What is the exact thing you want to do from a users perspective? -
Problem registering recipe serializer 1.15.2.
Animefan8888 replied to AntonBespoiasov's topic in Modder Support
Recipes dont go in the assets folder. They go in the data folder. If that doesnt fix it could you post your code as a github repo so it can be tested locally? -
[1.15] Save data to world using WorldSavedData
Animefan8888 replied to KidKoderMod033109's topic in Modder Support
Put the logic into the WorldSavedData class? -
Yes there is a system in Minecraft/Minecraft Forge called tags. Items, Blocks, entities, and fluids can be tagged together. There is a sapling one. To retrieve the tag do BlockTags.TAG_NAME.
-
You don't, at least not anymore. Instead you create an Item for each of them and typically a block for each of them.
-
[1.15] Save data to world using WorldSavedData
Animefan8888 replied to KidKoderMod033109's topic in Modder Support
Wait what? The ArrayList should be in your WorldSavedData class. Use a ListNBT to store a "list" of Items. -
ItemStackHandler not a direct replacement for IInventory?
Animefan8888 replied to TheGreyGhost's topic in Modder Support
Then that is a problem in it of itself. Solve the root of the problem not the visible one. Actually even this is not a problem both experimentally and in the code. Because when a slot is clicked while it does call mergeItemstack later on it still calls Container::detectAndSendChanges on ServerPlayerNethandler 1201.