Jump to content

Wen Li

Members
  • Posts

    20
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Wen Li's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. As the title, how to remove exist particle in client level?
  2. As title, I only find PlayerLoggedInEvent when I tried this. But, this is called after player has logged-in. Is there any way to prevent player from kicking by the same name player logged-in?
  3. In ItemTooltipEvent, it seemed that I can only add the instance of Component to the List<Component>. So how to render image in tooltip?
  4. I have a block and its blockentity. When player click the block, blockentity will provide menu to player. But I want to make only one player can open GUI at the same time. How to do it?
  5. Solved. Thanks for helping.
  6. I didn't use renderer for my custom arrow. Should I code renderer class to it and then override shouldRender method?
  7. I tried to use setInvisible method to make it invisible, but it didn't affect. How should I do to make it invisible?
  8. Thanks. But could you tell me which channel in forge discord should I use to chat with robot? I'm lost in finding where the robot in. And how to interact with the robot.
  9. Sorry for late. Just search it in your IDEA.
  10. For spawning an entity, you can search SummonCommand and see how minecraft do that.
  11. As the title, I'm using AccessTransformer but can't find the runtime fields and methods name. How to get that?
  12. Solved! I found that when the items in your hand, the items would be sent a mod's nbt tag automatically. That caused one slot item had tag, and another slot not. So, the solution is: Before sending items to player, use itemstack.getOrCreateTagElement method to add tag to items firstly. And then all the items have same tags, they can be merged into one slot!
  13. Additionally, I use player.addItem(Moditem.TestItem.get().getDefaultInstance()) to send items.
  14. When player killed mob, my mod will send some item into inventory of player directly. But I find that sometimes the same type items can't merge into one slot. But after put them in mainhand, these items can be merge into one slot. The item be sent is mod custom item, and they have some HoverText added by mod. How to solve it?
  15. Solve! Thanks for helping again!😀 It's phase problem.
×
×
  • Create New...

Important Information

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