Jump to content

Xoroshio

Members
  • Posts

    63
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Xoroshio

  1. Sure, please notify, 1.20.1 preferred.
  2. I know. I have that exact same feeling. I went through weeks of pain during the “How to get block entity is looking at” phase
  3. You may be setting the velocity on the server. That won’t work. If you are and that is the problem, do player.hurtMarked = true;
  4. Try and render an outline with GuiGraphics#renderOutline
  5. Are these modded enchantments or vanilla enchantments?
  6. Do you want to send a packet, or send a chat message?
  7. You probably just have to run them yourself. try genIntelijRuns
  8. Ok I figured it out. Basically you can’t do it, but I managed to do it by harassing the MusicManager.
  9. BlockRenderDispatcher#renderBreakingTexture might work, but it has to much rendering jargon on the parameters when all your doing is server logic. I suggest looking around and finding its usages, maybe there will be a simpler method.
  10. I’ve used it before and I’m pretty sure it works on both sides.
  11. Maybe try “worldgen/template_pool/goblin_caves/spawns.json” Or look into which path you should supply
  12. I can’t look into it right now, but I will do some research when I am able to look at the source
  13. player.pick(128, 1.0f, false) that will return a hit result, you can check if it’s type if Block, and then get its position.
  14. Erm, that’s doesn’t look like a modding problem. Reinstall Java maybe? Restart computer? Copy files over to another computer with Java and stuff? I really don’t know. There are many people out there who know lots more but i guess this is all you are going to get.
  15. Your log isn’t there. I’m going to guess you need to reset config files maybe? If you try everything and it all goes south, you can create another server and copy the properties file, world folder, and mods folder. That happened to me, and while some weird stuff happened because I was being lazy, if your config is default, it might work. No promises, this is a very dead end solution.
  16. I guess that maybe you could just return in Entity#tick before calling super.tick() I don’t know wether that will help but yea.
  17. If it’s a modded item, put your code inside use, that is fired when a player uses your item. If it’s a vanilla item, yes the interaction event fires when the player uses an item. Make sure you are listening to the event properly.
  18. I’m not quite sure what you need to do next, but put your code inside ctx.get().enqueWork(() ->{}) because the packets are not handled inside the level thread, and most game logic needs to be managed synchronously to all other game logic happening in that level
  19. Ok here is some code that I think might do the job public class MyEntity extends Animal { // 0 : black // 1 : red private int colorId; public MyEntity(EntityType<? extends Animal> pEntityType, Level pLevel) { super(pEntityType, pLevel); colourId = pLevel.random().nextInt(0,1); } @Override public void addAdditionalSaveData(CompoundTag pCompound) { super.addAdditionalSaveData(pCompound); pCompound.putInt("MyEntityVariant",colourId); } @Override public void readAdditionalSaveData(CompoundTag pCompound) { super.readAdditionalSaveData(pCompound); colorId = pCompound.getInt(“MyEntityVarient”); } public Packet<ClientGamePacketListener> getAddEntityPacket() { return new ClientboundAddEntityPacket(this, colourId); } public void recreateFromPacket(ClientboundAddEntityPacket packet) { super.recreateFromPacket(packet); colorId = packet.getData(); } }
  20. I should be working, I’m not sure what’s going on. Have you registered the entity, and are you spawning it in the world? Also, you need to do variant = friendlyByteBuff.readEnum(MyEntityType.class); currently you are just reading the data and not doing anything with it, but that’s a minor problem compared to the methods not firing. The read and write spawn data methods are called automatically by the games client packet manager.
  21. Mmmm this part of modding is not my strong part, and all the advice I can give is that retexturing the armour is imposible, or that your names/directories are wrong
  22. no you dont need EntityData, and yes, read and write your string in the read/writeSpawn data
×
×
  • Create New...

Important Information

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