how would you go about doing this?

User avatar
snakevenom
Member
 
Posts: 119
Joined: Sat Sep 22, 2012 12:56

how would you go about doing this?

by snakevenom » Sun Mar 31, 2013 16:16

i want to create a mod that allows you to fly without permissions however it requires you to have a item, lie some sort of a jet pack or flying ring.
is this possible and how can i do it?

i saw a video from a old version of the boats mod and in the boat you could just fly around.
 

User avatar
Topywo
Member
 
Posts: 1718
Joined: Fri May 18, 2012 20:27

by Topywo » Sun Mar 31, 2013 16:46

 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

by prestidigitator » Sun Mar 31, 2013 18:04

I can think of two ways to do this:

  1. Have the object temporarily grant the fly privilege (you'll have to carefully track when to revoke it, accounting for corner cases like logouts, disconnects, destroyed items, etc.), or
  2. Spawn an entity, attach the player to it, and test the player's controls to move the entity (not sure how smooth this will be).
Last edited by prestidigitator on Sun Mar 31, 2013 18:05, edited 1 time in total.
 

User avatar
snakevenom
Member
 
Posts: 119
Joined: Sat Sep 22, 2012 12:56

by snakevenom » Sun Mar 31, 2013 19:28

prestidigitator wrote:I can think of two ways to do this:

  1. Have the object temporarily grant the fly privilege (you'll have to carefully track when to revoke it, accounting for corner cases like logouts, disconnects, destroyed items, etc.), or
  2. Spawn an entity, attach the player to it, and test the player's controls to move the entity (not sure how smooth this will be).


i would like to do the first one but i dont know how, i know basic modding but not how to temporarily grant privs :( anyone wanna help?
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sun Mar 31, 2013 19:35

snakevenom wrote:
prestidigitator wrote:I can think of two ways to do this:

  1. Have the object temporarily grant the fly privilege (you'll have to carefully track when to revoke it, accounting for corner cases like logouts, disconnects, destroyed items, etc.), or
  2. Spawn an entity, attach the player to it, and test the player's controls to move the entity (not sure how smooth this will be).


i would like to do the first one but i dont know how, i know basic modding but not how to temporarily grant privs :( anyone wanna help?

I'd suggest you take the second option; It's less smooth, but also less prone to bugs.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
snakevenom
Member
 
Posts: 119
Joined: Sat Sep 22, 2012 12:56

by snakevenom » Sun Mar 31, 2013 19:42

kaeza wrote:
snakevenom wrote:
prestidigitator wrote:I can think of two ways to do this:

  1. Have the object temporarily grant the fly privilege (you'll have to carefully track when to revoke it, accounting for corner cases like logouts, disconnects, destroyed items, etc.), or
  2. Spawn an entity, attach the player to it, and test the player's controls to move the entity (not sure how smooth this will be).


i would like to do the first one but i dont know how, i know basic modding but not how to temporarily grant privs :( anyone wanna help?

I'd suggest you take the second option; It's less smooth, but also less prone to bugs.


yes however i do not care about bugs, only that it works. i can debug a item but i cannot make something a lot smoother.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 7 guests

cron