ranged items and other stuff i need to make

Started by RedCorr on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ranged items and other stuff i need to make

First of all, i need to make elevators that will teleport you to the other block-elevator, where it will be upper than first block.
Or even a blower, that will blow you up in the air, to the second floor.
no, its not going to act like creeper, but it will act like ventilator.

Second, i want to make animations for item reloading or boss appearing.

Third, i want to make ranged items that will go through the enemy.

How can i do all of that?

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
for first, I think blower is…
Fri, 06/19/2020 - 14:33

for first, I think blower is possible by adding y velocity to the player.

for second and third, I don't think it is possible without Java

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
huh Well, i can make mod…
Fri, 06/19/2020 - 21:13

huh
Well, i can make mod with many items, that do animations, when they changing, but ok.
Also, whats up with first?
Can you do example?

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This, for example, will…
Sat, 06/20/2020 - 01:28

This, for example, will perform a small jumping action to yet the player about 3 blocks tall.

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To extend @CrispyChip (will…
Sat, 06/20/2020 - 02:18

To extend @CrispyChip (will need java knowledge);

First of all, i need to make elevators that will teleport you to the other block-elevator, where it will be upper than first block.

You can iterate up/down y positions from the block and check for the keybinds, jump and sneak. Do this all on block collision.

 

Third, i want to make ranged items that will go through the enemy.

Just don't remove it if it hits an entity. Example below,

    protected void onImpact(RayTraceResult result) {
        if (result.getType() == RayTraceResult.Type.ENTITY) {
            Entity entity = ((EntityRayTraceResult)result).getEntity();
            entity.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)5);
        }
        else {
            if (!this.world.isRemote) {
                this.world.setEntityState(this, (byte) 3);
                this.remove();
            }
        }
    }

 

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hmmmmmmmmmm I will save…
Sat, 06/20/2020 - 22:39

hmmmmmmmmmm
I will save image.