Recent content by Noy

  1. Noy

    Question Why is noise still generated when `ChunkGenerator#shouldGenerateNoise` returns false?

    Although the problem has been solved, I still want to know why the noise is generated even if the noise generation is set to false.
  2. Noy

    Question Why is noise still generated when `ChunkGenerator#shouldGenerateNoise` returns false?

    Oh, I've got how to solve that. The world type must be set to WorldType.FLAT to truly stop the noise generation process.
  3. Noy

    Question Why is noise still generated when `ChunkGenerator#shouldGenerateNoise` returns false?

    Hi! I'm using my own chunk generator to create my own minigame world, and I make shouldGenerateNoise returns false. But the noise computation still appears and costs a lot of time. Why is that and how can I solve that? (Version: 1.21.10, no other plugins or datapacks, only a player in my...
  4. Noy

    Question Is custom `ItemType` possible in the future?

    Hi! I'm creating my own ItemStack s and Enchantment s, and I want to apply my custom enchantment to my custom weapon (using CLOCK as its ItemType). But sadly, the supportedItems method of enchantment provider only supports a RegistryKeySet of ItemType, and I don't want any other clocks or custom...
  5. Noy

    Question player.setPose() doesn't work

    Pose is a client-side action and can only be seen by other players. Worse still, some poses can be only performed under certain circumstances.
  6. Noy

    How to use MobGoals API

    I can't find any method to create a vanilla goal, so I'm sorry but maybe you should dig into NMS: Bukkit.getMobGoals().addGoal(mob, 1, new PaperVanillaGoal<>( new PanicGoal(((CraftMob)mob).getHandle(), 1.5) ));
  7. Noy

    Solved How to make players have an independent inventory in specified world?

    Thank you for your meticulous reply, it really helped a lot! Thank you very, very much!
  8. Noy

    Solved How to make players have an independent inventory in specified world?

    Yeah you are right, that can absolutely solve my problem, thank you! My purpose to ask this question here is just think that if there is any official support to do this, since there may always be some unexpected situations that after my plugin restored player's inventory, something bad happened...
  9. Noy

    Solved How to make players have an independent inventory in specified world?

    Hi! I am making a plugin that generates a custom world, and I want the players to have an indenpendent inventory in this world (which means, when a player enters this world, they will have a new inventory, and will switch back as long as they leave). The problem is that if I implement this...
  10. Noy

    Solved GENERIC_MAX_HEALTH disappear after using bootstrapper

    You are right! It was renamed to MAX_HEALTH after changing the API version to 1.21.4. But I'm still confused: 1. When I use 1.21.3 server jar, with a 1.21.1 API, this bug didn't occur until I added a bootstrapper. They should be irrelevant // 2. If the experimental phase ends in the future...
  11. Noy

    Solved GENERIC_MAX_HEALTH disappear after using bootstrapper

    After I used the bootstrapper to create my custom enchantment Glow, an unexpected error occurred. It shows that GENERIC_MAX_HEALTH is not one of the member field in org.bukkit.attribute.Attribute. This seems to be an mapping error, I guess. If I change it to the deprecated method...
  12. Noy

    PersistentDataContainer can't keep data from items being dropped and picked up?

    When you use itemStack.getItemMeta(), you will get a COPY of the ItemMeta. So if you want your modification be persistent, use itemStack.editMeta() instead. Hope it would help.
  13. Noy

    PersistentDataContainer can't keep data from items being dropped and picked up?

    You use the PDC held by item, which is an ENTITY! Every time you drop an ItemStack, it will spawn a new Item entity. So why not use the PDC inside ItemMeta?
  14. Noy

    Question How can I add a tooltip for `Commands.literal()`

    Since that argument types can have tooltips, a single literal argument should also own it. How can I set a tooltip for that?
  15. Noy

    Question What does DestroysTokyo mean

    Wow! Thank you for the detailed explanation! It's interesting to learn about the history behind it.