Everything posted by Luis_ST
-
[1.19.2] How to properly use mc.player.chatSigned()?
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?
-
REI move items is not working with refined storage crafting grid.
First of all stop spamming posts. If you know which Mod is causing the Problem talk to the mod author.
-
singleplayer world crashing after a few minutes of playtime 1.19.2
Please post debug.log. Note is some launchers you have to enable the debug.log.
-
instant crash custom modpack minecraft 1.19.2
Report the problems to the Mod author, so the issues get fixed
-
How should I handle a chessboard which needs way too many blockstates?
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.
-
[1.20.2] RecipeSerializer Codec requirement
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.
- At my wits end with this error
-
instant crash custom modpack minecraft 1.19.2
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.
-
instant crash custom modpack minecraft 1.19.2
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
Please post the full class and use the code feature of the forum.
-
[SOLVED] How to get the block the player's looking at
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.
-
Custom item private fields are not initialised when using CompassItemPropertyFunction
Show you code, ideally in a GitHUb repo.
-
[1.19.4, SOLVED] Synched entity data does not persist after player dies and respawns
Did you saved the value of DATA_IS_SOMETHING to disk when the Entity is unloaded in addAdditionalSaveData and load it in readAdditionalSaveData?
-
Mod not showing in game mod list
Is this your Mod?
-
Registry problem although features exist and have worked before I added new blocks
Please do not post multiple classes in one code block. Looks like your Blocks are not correctly registered, please show us your main mod class
-
Get persistent reference to entity.
Use the UUID of the Entities, did you saved the references to disk in you custom Entity?
-
Block ticking?
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)
-
[1.19.3] How would you go about changing the alpha of an armour to make it look translucent?
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)
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.
-
Client crashing almost instantly when trying to load Citadel as a dependency.
The following LivingEntityMixin of citadel fails because it can not find a method in net.minecraft.world.entity.LivingEntity Are you sure the version of citadel is compatible with the version of Minecraft you are using?
-
Reference problem intellij (1.18.2)
Do you know basic java? Tutorial about the keyword static in java: https://www.baeldung.com/java-static
-
[1.20.2] RecipeSerializer Codec requirement
Please post the recipe "cagedmobs:environments/red_mushroom_block"
-
How do I port an old mod to a newer version of Minecraft?
You can checkout this page in the forge documentation. https://docs.minecraftforge.net/en/1.19.x/legacy/porting/
-
Can be closed
Please post debug.log from the logs folder.
-
forge not working windows 11
Please post debug.log from the logs folder. Create your own thread and post the log there not in this thread.
IPS spam blocked by CleanTalk.