Jump to content

Xoroshio

Members
  • Posts

    82
  • Joined

  • Last visited

  • Days Won

    3

Xoroshio last won the day on December 6 2024

Xoroshio had the most liked content!

2 Followers

Converted

  • URL
    http://youtube.com/@Xoroshio

Recent Profile Visitors

279887 profile views

Xoroshio's Achievements

Stone Miner

Stone Miner (3/8)

7

Reputation

  1. 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.
  2. 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
  3. 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.
  4. 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 😅
  5. My guess would be that you are not getting the chunk coordinates right, or getChunk dosnt work.
  6. Ahhhh idk. Been awhile. How do you know the entity is in the chunk.
  7. Add your block to the corresponding tag.
  8. What is your code listening to GatherDataEvent
  9. Just call level.getChunk(x, y); After that you can get the entities. Dont worry about the return value, the method loads the chunk.
  10. 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.
  11. 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.
  12. How are you registering the overlay, and can I have the log.
  13. To explain the crashing I need to see the log. Also, if you want to follow the topic just scroll to the top and click the following thing, and then press follow. And yes, screen are really only useful for menus and things.
  14. If you set the screen when the item was pulled out that would make the item partially unusable. You can’t move in game when your screen isn’t null.
×
×
  • Create New...

Important Information

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