Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by ChampionAsh5357

  1. This has to do with very specific circumstances I think. From what I can gather in the codebase, when the fall event occurs, it's near the end of the handling method. As such, the movement wouldn't be applied until the next available tick. However, the player was marked as being on the ground and the jump button not being pressed. That ends up taking precedence and saying, "hey, don't increase the velocity, nothing happened". A special case is when the player takes damage though. A flag gets set to allow the knockback to be applied which takes priority over the being on the ground. As such, the player is knocked into the air since it just takes a sample of the set delta movement.

    Falling on a block is a different matter as this is called during the Entity#move method after all replacement logic on the delta movement has been applied. This allows the block to do whatever to the delta movement.

    I apologize for any inaccuracies in this assessment.

  2. There's a little error that sneaks by here that explains the issue: 'Caused by: java.lang.NullPointerException: Registry Object not present: industry:default_deepslate'.

    You statically held an instance of a registry object and classloaded the associated object before registry events have passed. Surface builders are registered after biomes after all. Instead, wrap the instance in a supplier. This should be done for all registry objects including the Features. Just make sure to remember to register the configured data during common setup.

    At some point, I suggest moving to JSON as your biome could be fully declared within there.

  3. Please link a paste of the EntityType object initialization, where the associated register is attached to the event bus, the renderer, where the renderer is registered, and where the attributes are registered. I know you might have already sent them, but I would like full context rather than pictures of partial snippets.


    Also, you shouldn't be passing in a new instance of the Reloadable resource manager. Grab the one within the Minecraft instance and pass that in.

  4. 1 hour ago, Yurim64 said:

    @Override public IPacket<?> getAddEntityPacket() { return super.getAddEntityPacket(); }

    Aha, this need to return NetworkHooks#getEntitySpawningPacket. Vanilla has hardcoded entries for non living entity types. As such, you need to set it to the custom packet so that the entity will spawn on the client and be rendered.


  5. I think that it has more to do with the inconsistent lighting rather than the roughness of the shape. And I think to deal with that there needs to be something changed within the mtl, though I don't remember what exactly. As for the incorrect location, blocks always need to be offset by 0.5 since the positions are determined by their corners and not by the center.

  6. 3 minutes ago, L0raxeo said:

    Sorry, but I also don't know how to reduce the time in between each time the update() is called. Any suggestions?

    You don't. Just assume if nobody is being dumb that all logic will be uniformly spread over a period of time. MC logic should be done relative to ticks anyways so you won't have to deal with desynced real world timing.

  7. 54 minutes ago, DracoDoes said:

    Block class :: I'm trying to simplify the Block as much as I can.

    Don't simplify. Provide an exact paste of the entire class. Simplification means you're filtering out code you think might not be relevant but might be actually causing the error. It's preferable if you can provide a repo to your codebase instead of just snippets though because the above error suggests that you're trying to refer to an unmapped field.

  8. 1 hour ago, Yurim64 said:

    Ok, so how can i do that?

    Look at a reference of the perspectives test.

    58 minutes ago, Yurim64 said:

    And then I generate my entity, It does not call the render method inside the BulletRenderer class which extends EntityRenderer.
    Why? Is there another way? What I miss??

    If that's the case, you're probably not overriding the render method. Put an override annotation on the method. If it fails, find the correct method signature and adjust.

  9. I'm guessing this is for a TileEntity? If so, it's called once every tick so its constant in terms of MC. As for the time between those ticks, it usually is approximately the same unless some bad logic is causing the ticks to lag behind.

  10. 1. I didn't even look at your class, I looked at the item being registered to which there is no reference to your subclass.

    2. The sound is null because it doesn't exist. SoundEvents are objects that need to be registered and then pointed to in the sounds.json. You cannot create them on the fly.

  11. 32 minutes ago, Yurim64 said:

    But the BulletEntity is invisible, I don't know how to associate the item model with the entity.

    I just told you there is no association. The item model manager has no concept of any models that are not part of an item. If you want to add a special model, you have to pull it directly from the ModelManager and not from the ItemModelMesher.

    33 minutes ago, Yurim64 said:

    The bullet is like an Arrow.

    This doesn't explain why it can't be part of the item. You could just use the gui model for the gui transform type and specify the other json mdoel as the first person right/left hand using the perspective model json. The notion of having a completely separate model from the item being thrown imo is outdated and should be respectively attached to the item render itself.

  12. So, why are you trying to make the bullet json separate from the item itself? You seem to be under the assumption that #addSpecialModel attaches the model to your item. It just attaches the model to general ModelManager. However, this seems completely unnecessary as you could just specify this as the item model.

  13. 1. Create a subclass of the item, override the method and append to the text component list.

    2. Click on it. Armor stands are made to take any ArmorItem.

    3. Create a model texture for the horse and put it in the ResourceLocation specified by your second variable (note you can't just put 'silver' for that value, supply it a resource location with your mod id).

  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.