-
How do I change player gamemode on join?
Hey there, nothing to do with the code, I am just suggesting you use Intelij IDEA. Trust me, it is the best.
-
-
How do I change player gamemode on join?
Hey there, nothing to do with the code, I am just suggesting you use Intelij IDEA. Trust me, it is the best.
-
How to register a command tree node to be executable only by players?
You can use the .requires() function the server also has a permission level of 4, which is the highest permission level.
-
Item code that add Velocity to Player?
Use player.setDeltaMovement(player.getViewAgle().scale(speed) and then set player.hurtMarked to true. if your in the server and setting velocity, that doesn’t work, you have to set hurtMarked to true, that sends the update to all the clients. Just try and add that line at the end somewhere.
-
How do i make a client code that make player break block that im looking at?
You can probably use KeyMapping.setDown(key, pDown) this however only emulates the key being held down (works for mouse buttons too), and all the flow on effects will happen (ie block breaking) if you only want it to happen when the client player is looking at something you can subscribe to client tick event and check if Minecraft.getInstance().hitResult instanceof BlockHitResult
-
Client mod work only on singleplayer
You will probably have to do some research into packets, as the server tends to send those types of updates as packets. If you want to actually trigger anything when those packets are received (if they exist) you will have to set the client players packet listener impl to your own custom one or write some mixins. Preferably the former as it is a much friendlier and flexible approach whereas mixins are just downright evil.
-
Immediately forceloading chunks? [1.18.2]
I will have to do more research about 1.18 chunk loading. You were unclear about how your code manages with the entity load failure. If you simply used a loop, I suggest submitting a tick task to the next tick which does the same thing, checking if the entities are loaded and if so teleporting the right one else submitting another tick task etc. Also I think forceloading permanently force loads the chunk, and it only starts to unload when you make a subsequent call to mark the chunk as not forceloaded. I may be completely wrong, I dont know much about 1.18, most of my experience is 1.20. Good luck I hope you figure it out after all this time 😅
-
Immediately forceloading chunks? [1.18.2]
My guess would be that you are not getting the chunk coordinates right, or getChunk dosnt work.
-
Immediately forceloading chunks? [1.18.2]
Ahhhh idk. Been awhile. How do you know the entity is in the chunk.
-
How would I make my block a fuel item?
Add your block to the corresponding tag.
-
WorldGen: Files not generating
What is your code listening to GatherDataEvent
-
Immediately forceloading chunks? [1.18.2]
Just call level.getChunk(x, y); After that you can get the entities. Dont worry about the return value, the method loads the chunk.
-
How to write terrain generation code in java minecraft
Nah it’s all good.
-
pack.mcmeta and resource pack not recognized
Try not zipping the folder pack.mcmeta etc… is in, but selecting the files and zipping them. I think this might be an apple related problem but idk.
-
How to write terrain generation code in java minecraft
If you are new to coding, and new to doing any kind of coding, don’t try to create custom terrain. that is a bad idea. I repeat A BAD IDEA. First try something easy, like an item. And look at the core registers and stuff. Then figure out events and stuff, fml and registry loading. Once you’ve done that study up on terrain generation and Open Simplex or other types of noise. Once you’ve got all that under your belt you can start by mucking around with codecs and things until you can assemble an implementation of a chunk source (I forgot it’s name so if I’m wrong pls don’t ping). Once that’s done you can try to register it and then replace minecraft default noise chunk source with your own. Good luck. By the way, look up how to make custom biomes. That might be easier.
IPS spam blocked by CleanTalk.