MelonBP

Pumpkin Generate Command

Oct 11th, 2020
1,701
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. # Description
  2. It's a command that generates a pumpkin shape inside your selection. You can customize stuff with three variables (n, t, u).
  3.  
  4. # The command
  5. //g [block] n=9;t=12;u=0.8;y^2<=(((t+cos(n*atan2(z,x)))/(t+1))^2-x^2-z^2)*(1-u*e^(-8*(x^2+z^2)))
  6.  
  7. # The variables
  8. - 'n' controls how many bumps go around the pumpkin (I don't know how else to describe these shapes). This hopefully shouldn't need more explaining. Make this value a whole number or some weird stuff will happen.
  9. - 't' controls how thick the center of the pumpkin is... sort of. Making 't' a larger number will make the creases between the bumps less sharp. This value can be any number greater than 1, but I recommend using something between 10-20 depending on the number of bumps in your pumpkin.
  10. - 'u' controls how much the pumpkin indents at the top and bottom. This number can be between 0 and 1, where u=0 means no indentation and u=1 means maximum indentation. I recommend using a value between 0.5 and 0.8.
  11.  
  12. # P.S.
  13. No there's not a stem command, use /br spike or something like that.
Advertisement
Add Comment
Please, Sign In to add comment