Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi there ,

 

I know there are plenty of ways of how to rotate blocks but only the directional rotation of  the textures , as far as i found out yet.

 

What i wanted to do  is a block as a nave. Then some SpecialBlocks which rotates arround this Naveblock in a nearly 360° way. (like a big Gear where you can stand on and move with it)

Next thing i want to do is to let the player rotate with the spot he is standing on .

 

I wanted to asks if this is even possible or if it would be needed to change minecraft itself to offer this possibility?

Hi

 

For the rendering, look into TileEntitySpecialRenderer.  You can use a model in there, like gummby8 said.

 

To move the player, you can change the player's speed by manipulating their .motionX, .motionY, .motionZ

(eg player.motionX += 0.2)

or their position by changing their posX, posY, posZ

 

-TGG

 

 

  • 2 weeks later...
  • Author

Hmm another Question:

 

I redicided to do this with every Block which is  connected to the rotating Face of the Naveblock ( plus the once connected to the one which is rotating as well ( up to 100blocks (or more ) )

So i do not have a OBJ-File to do this and have to use the Block itselfs like for example the Dirt-Block.

 

What i tried so far is to use the TileEntity of the Block connected to the Nave . But there seems no way to do this with it ... maybe im just missing something.

 

I also looked up the EntityFallingBlock for this . But im confused by all that wierd functionnames which i cant find at the functions.csv .

 

Can someone maybe explain it to me ?

 

EDIT: Btw. im working with Forge for MC 1.7.2  (because im still using Cauldron as Server)

if your 'naveblock' only rotates certain blocks that you add, then your good, you'll need a TileEntitySpecialRenderer and constantly rotate it.

If you wish to rotate vanilla blocks, you can't without editing minecraft's base code.

Sorry

[shadow=gray,left][glow=red,2,300]KEEGAN[/glow][/shadow]

  • Author

Ah i see.

 

Than another idea . I make a movable block which can rotate and that stuff . After this i let the block copy the bounds and textures of the selected block-faces . This way i wouldnt rotate a vanilla block but a visual copy of it.

 

Hmm ... damn ... than i have to program some new colider-boxes which are able to rotate. 

 

 

Hi

 

Falling sand is an entity, not a block any more.  You can rotate it, but Minecraft collision boxes always stay aligned to the x,y,z axes, so you would need to write your own collision detection code.  Might as well stick with a TE to render the rotating parts and in its update tick perform your custom collision check on any nearby entities which have wandered into its range.

 

-TGG

 

 

  • Author

ok thx for the reply. Looks like this mod is going to be more fun and challenging in coding  than i thought.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.