Everything posted by Xoroshio
-
[1.21]The behavior of the search bar in CreativeModeTab is unusual
Try and render an outline with GuiGraphics#renderOutline
-
Cant Enchant past level 4 on enchants
Are these modded enchantments or vanilla enchantments?
- [1.20.1] Help with Exception throwing
- Server-side mod send message to player on forge 1.20.6
- 1.20.1 MDK Setup Does Not Deobfuscate Minecraft
- [SOLVED] Adding custom soundtrack to custom dimension
- [SOLVED] Render mining overlay & fix unable to break snow? (Custom Item)
-
Getting which block player's pointing at in GUI
I’ve used it before and I’m pretty sure it works on both sides.
-
cant find StructurePool using Code
Maybe try “worldgen/template_pool/goblin_caves/spawns.json” Or look into which path you should supply
- [SOLVED] Render mining overlay & fix unable to break snow? (Custom Item)
-
Getting which block player's pointing at in GUI
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.
-
[1.21] Having trouble with the configured feature json file
Try and remove betterazalearedux
-
Making a mod, can't seem to get the Minecraft running in eclipse
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.
-
cant connect to the server
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.
- How to make a stationary mob?
-
Is it possible to get an item's right click actions from the PlayerInteractEvent.EntityInteract?
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.
- [SOLVED] Render mining overlay & fix unable to break snow? (Custom Item)
- error when setting up Intellij to create mods minecraft 1.8.9 on macOS
-
How to make an entity to save its property when reentering the game?
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(); } }
-
How to make an entity to save its property when reentering the game?
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.
-
Overwriting textures of another mod works with items but does not with armor
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
-
How to make an entity to save its property when reentering the game?
no you dont need EntityData, and yes, read and write your string in the read/writeSpawn data
-
Giving a player an item.
player.getInventory().add(new ItemStack(your item here);
-
PLEASE someone help I have been asking everyone no one has helped!
Hmmm, something is probably going wrong in your build.gradle or settings.gradle
-
Inventory Overhaul / Editing the existing survival inventory
Ahhhhh, modded inventories, my favourite. You are going to need a LOT of skill to pull this one of. Start by replacing the inventory screen with your own, and then you are basically on your own. It is achievable, but trust me, it’s going to be a lot of hard work.
IPS spam blocked by CleanTalk.