Flying blocks or Rideable entities?

Started by jupop777 on Wed, 08/19/2020 - 18:39

Topic category: Help with modding (Java Edition)

Last seen on 18:05, 14. Sep 2020
Joined Apr 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Flying blocks or Rideable entities?
Wed, 08/19/2020 - 18:39

I am creating a spaceship, and I would like to make it able to be able to be moved around in, somewhat like a little room you could walk in while the ship is on and flying around. I brainstormed and came to 2 conclusions. 1: Make the ship an entity and 2: Make the ship out of blocks. But there are some problems:

First, I know how to make the entity fly around with you inside, but I don't know how to make the little room inside of it that you can move in.

Second, I know how to build a spaceship out of blocks and make the little room for you to move in, but I don't know how to make it fly and stay together.

Lastly, (kinda unrelated) I don't know how to bind two guis to one entity.

I would like to know which option is better, and how to fix the problem I have with each. Or even if you have a better idea than mine. TIA

Last seen on 08:28, 9. Oct 2020
Joined Jul 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It would be a headache, and…
Wed, 08/19/2020 - 23:51

It would be a headache, and probably glitchy under certain circumstances, but if you made the spaceship a hollow entity (so textures on the inside as well as outside) and made a "chair" like entity (that rolls/hovers), if you made it so you are only riding the chair, and the spaceship follows the chair (or the other way around), you may be able to get it to work.

Off the top of my head, the difficult things about this would be:

  • Keeping the chair inside the spaceship without them pushing against each other (disabling the collision box for one of them could maybe fix this?).
  • Making the spaceship stay in the proper range of the chair.
  • getting into the spaceship if you aren't actually riding it (possibly disabling the spaceship collision box?).

 

For your other question, would just opening a different unbound GUI when you click a button work for your entity?

Hope this helps! If not, I don't blame you not wanting to try dealing with it ;) .

Last seen on 18:05, 14. Sep 2020
Joined Apr 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hmmm. I see where you are…
Thu, 08/20/2020 - 22:13

Hmmm. I see where you are going with this, but if you disable the collision box of the spaceship entity, won't you just fall out? As for the collision, the chair part probably doesn't need a collision box. 

Last seen on 08:28, 9. Oct 2020
Joined Jul 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
As long as you are riding…
Thu, 08/20/2020 - 22:32

As long as you are riding the chair, and the chair is staying with the spaceship (or spaceship staying with the chair) you should be fine. I assume you cant can't ride on an entity if it doesn't have a collision box (because how would you click on it to ride it?), which is why the chair would need a collision box, however to keep the entities from pushing against each other one might need to have no collision box, which would only leave the spaceship. I was thinking along the lines of the chair being the real spaceship (giving it a large collision box and most of the movement controls) and the spaceship is just a skin that floats around it and shifts around the chair if you "move" around inside.

Last seen on 18:05, 14. Sep 2020
Joined Apr 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Interesting idea. It is…
Sun, 08/23/2020 - 22:43

Interesting idea. It is worth a shot, will update you if I run into issues.

Last seen on 08:28, 9. Oct 2020
Joined Jul 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Ok, good luck!
Mon, 08/24/2020 - 19:12

Ok, good luck!