-
Posts
63 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Xoroshio
-
Anyone want to make a mod collab? (Versions Negotiable)
Xoroshio replied to AlphaIceCube's topic in Modder Support
Sure, please notify, 1.20.1 preferred. -
Getting which block player's pointing at in GUI
Xoroshio replied to XiongTM's topic in Modder Support
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 -
Player can still swim after log in even though it should be disabled
Xoroshio replied to Ants1207's topic in Modder Support
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; -
[1.21]The behavior of the search bar in CreativeModeTab is unusual
Xoroshio replied to mgen256's topic in Modder Support
Try and render an outline with GuiGraphics#renderOutline -
Are these modded enchantments or vanilla enchantments?
-
That should work.
-
Server-side mod send message to player on forge 1.20.6
Xoroshio replied to Darkesneik's topic in Modder Support
Do you want to send a packet, or send a chat message? -
1.20.1 MDK Setup Does Not Deobfuscate Minecraft
Xoroshio replied to XiongTM's topic in Modder Support
You probably just have to run them yourself. try genIntelijRuns -
[SOLVED] Adding custom soundtrack to custom dimension
Xoroshio replied to Xoroshio's topic in Modder Support
Ok I figured it out. Basically you can’t do it, but I managed to do it by harassing the MusicManager. -
Getting which block player's pointing at in GUI
Xoroshio replied to XiongTM's topic in Modder Support
I’ve used it before and I’m pretty sure it works on both sides. -
Maybe try “worldgen/template_pool/goblin_caves/spawns.json” Or look into which path you should supply
-
Getting which block player's pointing at in GUI
Xoroshio replied to XiongTM's topic in Modder Support
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
Xoroshio replied to Jeremy Quann's topic in Modder Support
Try and remove betterazalearedux -
Making a mod, can't seem to get the Minecraft running in eclipse
Xoroshio replied to AlphaIceCube's topic in Modder Support
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. -
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.
-
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.
-
bug error when setting up Intellij to create mods minecraft 1.8.9 on macOS
Xoroshio replied to Somikyy's topic in Modder Support
Maybe try and uninstall Kotlin plugin? -
How to make an entity to save its property when reentering the game?
Xoroshio replied to GsE-26's topic in Modder Support
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?
Xoroshio replied to GsE-26's topic in Modder Support
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. -
How to make an entity to save its property when reentering the game?
Xoroshio replied to GsE-26's topic in Modder Support
no you dont need EntityData, and yes, read and write your string in the read/writeSpawn data