Jump to content

Luis_ST

Members
  • Posts

    5704
  • Joined

  • Last visited

  • Days Won

    72

Everything posted by Luis_ST

  1. 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?
  2. First of all stop spamming posts. If you know which Mod is causing the Problem talk to the mod author.
  3. Please post debug.log. Note is some launchers you have to enable the debug.log.
  4. Report the problems to the Mod author, so the issues get fixed
  5. 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.
  6. 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.
  7. Plese post debug.log. Note in some launchers you have to enable the debug.log.
  8. 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.
  9. 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.
  10. Please post the full class and use the code feature of the forum.
  11. 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.
  12. Did you saved the value of DATA_IS_SOMETHING to disk when the Entity is unloaded in addAdditionalSaveData and load it in readAdditionalSaveData?
  13. Is this your Mod?
  14. 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
  15. Use the UUID of the Entities, did you saved the references to disk in you custom Entity?
  16. 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)
  17. 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.
  18. 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.
  19. 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?
  20. Do you know basic java? Tutorial about the keyword static in java: https://www.baeldung.com/java-static
  21. Please post the recipe "cagedmobs:environments/red_mushroom_block"
  22. You can checkout this page in the forge documentation. https://docs.minecraftforge.net/en/1.19.x/legacy/porting/
  23. Please post debug.log from the logs folder.
  24. Please post debug.log from the logs folder. Create your own thread and post the log there not in this thread.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.