Luis_ST
Members-
Posts
5704 -
Joined
-
Last visited
-
Days Won
72
Everything posted by Luis_ST
-
[1.19.2] How to properly use mc.player.chatSigned()?
Luis_ST replied to SentriKun's topic in General Discussion
Did you looked at the ChatScreen as an example for how to send a Message from a Player? Why do you want to send a message for the player to the server? -
1.19.2 instant crash custom modpack minecraft 1.19.2
Luis_ST replied to zmqrcoo's topic in Support & Bug Reports
Report the problems to the Mod author, so the issues get fixed -
How should I handle a chessboard which needs way too many blockstates?
Luis_ST replied to Baybird's topic in Modder Support
If you have too many BlockStates you can render the Block by yourself using a BlockEntityRenderer. I have never done this myself, but you could look at the vanilla chest as an example of how a block/model is rendered. But I can't promise you that this is the right direction to do this. -
The problem is not the 'input' field its' the 'render' field. You expect there a BlockState but 'minecraft:red_mushroom_block' is a Block. If you need no BlockState you can use ForgeRegistries.BLOCKS.getCodec() instead of BlockState.CODEC. If you need explicit a BlockState take a look at the Codec which fields are required.
-
1.20.1 At my wits end with this error
Luis_ST replied to NikaraWorld's topic in Support & Bug Reports
Plese post debug.log. Note in some launchers you have to enable the debug.log. -
1.19.2 instant crash custom modpack minecraft 1.19.2
Luis_ST replied to zmqrcoo's topic in Support & Bug Reports
Probably a problem with RegionsUnexplored, make sure the mod is up to date. If the mod is up to date remove it an try again. -
1.19.2 instant crash custom modpack minecraft 1.19.2
Luis_ST replied to zmqrcoo's topic in Support & Bug Reports
Probably a problem with ChunkaAnimator, make sure the mod is up to date. If the mod is up to date remove it an try again. If this does not work please post debug.log. -
EntityJoinWorldEvent EntityJoinWorldEvent not working
Luis_ST replied to Ian Battistoni's topic in Modder Support
Please post the full class and use the code feature of the forum. -
[SOLVED] How to get the block the player's looking at
Luis_ST replied to xCrazyFeline's topic in Modder Support
I used the following code: public static @NotNull Vec3 clipWithDistance(@NotNull Player player, @NotNull Level level, double clipDistance) { double vecX = Math.sin(-player.getYRot() * (Math.PI / 180.0) - Math.PI) * -Math.cos(-player.getXRot() * (Math.PI / 180.0)); double vecY = Math.sin(-player.getXRot() * (Math.PI / 180.0)); double vecZ = Math.cos(-player.getYRot() * (Math.PI / 180.0) - Math.PI) * -Math.cos(-player.getXRot() * (Math.PI / 180.0)); return level.clip(new ClipContext(player.getEyePosition(), player.getEyePosition().add(vecX * clipDistance, vecY * clipDistance, vecZ * clipDistance), ClipContext.Block.OUTLINE, ClipContext.Fluid.NONE, player)).getLocation(); } Note if you also want to recognise Fluid as a block, you have to change ClipContext.Fluid. -
Is this your Mod?
-
Use the UUID of the Entities, did you saved the references to disk in you custom Entity?
-
Mojang marks methods as deprecated when you should not call them, overriding them is okay. But i would recommend you to use a BlockEntity instead. You can use the Beacon as an example (BeaconBlock & BeaconBlockEntity)
-
You have to create you own HumanoidArmorLayer which renders your Armor with a alpha value less than 1.0. You can extends the vanilla HumanoidArmorLayer then use an AT to make the method renderModel method public. Override the method and call the method renderToBuffer with a custom alpha value (the alpha value is the last parameter). Add the custom LayerRenderer via EntityRenderersEvent.AddLayers you may need an AT to remove the vanilla HumanoidArmorLayer to avoid conflicts.
-
Can anyone help me with texture tinting (1.20.1)
Luis_ST replied to AjayXD__'s topic in Modder Support
You have to use a black and white texture for your leaves like vanilla and then register a BlockColor for your Block(s) in RegisterColorHandlersEvent.Block. You can look at the vanilla examples in BlockColors class. -
Do you know basic java? Tutorial about the keyword static in java: https://www.baeldung.com/java-static
-
Please post the recipe "cagedmobs:environments/red_mushroom_block"
-
How do I port an old mod to a newer version of Minecraft?
Luis_ST replied to PulseBeat_02's topic in General Discussion
You can checkout this page in the forge documentation. https://docs.minecraftforge.net/en/1.19.x/legacy/porting/ -
Please post debug.log from the logs folder.
-
Please post debug.log from the logs folder. Create your own thread and post the log there not in this thread.