-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
It's likely, because it's still there, but it's probably on the back burner.
-
If you used ray tracing to represent the bullet, and didn't use an Entity at all. Your ray tracing would happen in a single tick before the target of the shooter could move. Long range shots would be instant. There would be no leading your shot.
-
Technically yes, but it wouldn't allow for the target to move out of the way.
-
That's because the bullet moves past the entity. It never collides because it was never actually in the same space as the entity. Ray Tracing is a way to ask the world if there is anything between point A and point B. If there is then you handle that accordingly.
-
[1.14.4][SOLVED] storing complex sets of data in capability
Animefan8888 replied to andGarrett's topic in Modder Support
This is completely possible you have to use the CompoundNBT#put(String, INBT) method. There is no specific method for compounds or lists. Also ListNBT can be a list of CompoundNBT so you can store any and all data complex or simple. -
[1.14.3] make blocks naturally generate
Animefan8888 replied to MrNoodles75's topic in Modder Support
This is a Mod LifeCycle event. You'd typically have this in your @Mod class and have it registered in that classes constructor with FMLJavaModLoadingContext.get().getModEventBus().addListener(this::commonSetup); -
You need a block/ultagem_block
-
[1.14.4][SOLVED] request server side data for gui
Animefan8888 replied to andGarrett's topic in Modder Support
Yes. There are reasons such as LAN worlds, and the fact that they are on separate threads. Yes that is exactly what I mean. The DedicatedServer doesn't know about the Minecraft class at all. It doesn't exist. So using on a DedicatedServer will crash with a ClassNotFoundException. -
[1.13.2] Replacing Vanillia Textures Doesn't Work Outside IDE
Animefan8888 replied to coolsim's topic in Modder Support
No it should just work like a Resource Pack. -
[1.14.4][SOLVED] request server side data for gui
Animefan8888 replied to andGarrett's topic in Modder Support
No no no don't do that. It will crash the dedicated server and you are reaching across logical sides. You need to send a packet and in the handling method of the packet you use Minecraft.getInstance().player. -
[1.13.2] Replacing Vanillia Textures Doesn't Work Outside IDE
Animefan8888 replied to coolsim's topic in Modder Support
Check to make sure that the textures are in the built jar file. Also if it does turn out this is a bug you'll have to update from 1.13.2 to 1.14.4 as 1.13 was a in-between version of forge. -
[1.14.4] How to change the player renderer?
Animefan8888 replied to kaydogz's topic in Modder Support
You might also need to apply the rotations to the entity as well as passing them into the doRender method. -
[1.14.4] How to change the player renderer?
Animefan8888 replied to kaydogz's topic in Modder Support
Sorry my bad do your rendering in the Pre event. Don't know why I said Post. -
[1.14.4] How to change the player renderer?
Animefan8888 replied to kaydogz's topic in Modder Support
First off use PlayerRenderEvent.Pre instead. Cancel the event under your conditions then subscribe to the RenderPlayerEvent.Post and render the model there yourself. -
What I said should be pretty self explanatory. You have some static fields of EntityType you cant initialize them statically. Which means you cant do it inline when you declare it or in a static{}. So instead of doing it there you must do it in the registry events. If it has a Spawn Egg Associated with it you need to initialize your Entity Type in the same registry event where you register the spawn eggs. If it doesnt have a spawn egg associated with it initialize it where you register it.
-
[1.14.x] How to generate multiple biomes in custom world type.
Animefan8888 replied to Stanlyhalo's topic in Modder Support
There is one, but it is for the Overworld specifically take a look at OverworldBiomeProviderSettings and OverworldBiomeProvider. You can also use your IDE to figure these things out. If you right click on a Class name and Click Open Type Hierarchy in eclipse it will show you the parent classes and child classes in a hierarchy. -
[Solved] [1.14.4] Some event methods do not trigger
Animefan8888 replied to Angercraft's topic in Modder Support
What version of forge do you have? Is it really old, have you tried updating? -
Dont statically initialize registry values. If they have spawn eggs initialize them in the Register<Item> event if no spawn egg for it initialize it in the Register<Entity> event.
-
[1.14.4] Give the player an item when durability reaches 0
Animefan8888 replied to Jebano's topic in Modder Support
You need to handle that case yourself. addItemStackToInventory returns a value. Use that value to know whether or not you must spawn an EntityItem where the player is.