I don't have the time to work on this myself, but it is a super easy mod idea to make that Minecraft 1.8 really needs: a command for making spheres. Ideally, the command syntax would be essentially the same as the /fill command:
Would make a sphere made of chests containing diamonds and iron ingots with radius 5 centered on a point 5 blocks north of the user's location.
If you make this mod, it will immediately become very popular among creative builders. Even if you only implemented /sphere <x> <y> <z> <radius> <block> [meta] that would make a big splash.
Rollback Post to RevisionRollBack
My mods: Base Metals, Power Advantage, Steam Advantage, Electric Advantage, Minecraft Mineralogy, Dr. Cyano's Lootable Bodies, Dr. Cyano's Wonderful Wands & Wizarding Robes
I had been told that WorldEdit had not yet updated to Minecraft 1.8, but I see now that my information is out of date.
Thanks
Rollback Post to RevisionRollBack
My mods: Base Metals, Power Advantage, Steam Advantage, Electric Advantage, Minecraft Mineralogy, Dr. Cyano's Lootable Bodies, Dr. Cyano's Wonderful Wands & Wizarding Robes
I may try to make this anyways because it would help me hit several targets with one arrow: I want to test out intellij idea and I want to make a minecraft forge mod. I would also learn about sphere generation and how it works. (I already know circle voxel generation: check each pixel to see if x^2 + y^2 is roughly radius^2, but I'm not sure how it would with with x y and z)
EDIT: Is the fill mode to switch between hollow and solid? If so, which should be the default?
I understand all the theory of circle generation. The reason I give up is because of the lack of proper forge documentation, it is impossible to do much unless you already have experience with the API.
The BlockPos classes have distance and distance-squared functions, so you don't need calculate it yourself (and I agree that the documentation far from comprehensive).
It is one of the endearing mysteries of the universe that the distance formula is the same no matter how many dimensions you have.
Rollback Post to RevisionRollBack
My mods: Base Metals, Power Advantage, Steam Advantage, Electric Advantage, Minecraft Mineralogy, Dr. Cyano's Lootable Bodies, Dr. Cyano's Wonderful Wands & Wizarding Robes
I understand all the theory of circle generation. The reason I give up is because of the lack of proper forge documentation, it is impossible to do much unless you already have experience with the API.
There are tutorials out there, but the best way of learning is to look at other peoples code and looking through the forge source (call hierarchy in eclipse is your friend).
Once you know what the forge code does, you can work out how to use it. These forums (and the forge ones) are good, as they are full of helpful people who have looked through various parts of the code already.
Hi everyone!
I don't have the time to work on this myself, but it is a super easy mod idea to make that Minecraft 1.8 really needs: a command for making spheres. Ideally, the command syntax would be essentially the same as the /fill command:
/sphere <x> <y> <z> <radius> <block> [meta] [fill mode] [NBT data JSON]
For example:
/sphere ~ ~10 ~ 5 minecraft:dirt
Would make a sphere made of dirt with radius 5 centered on a point 10 blocks above the user's location.
/sphere ~ ~ ~-5 3 minecraft:chest 0 replace {Items:[{id:"minecraft:diamond",Count:1,Slot:0},{id:"minecraft:iron_ingot",Count:16,Slot:1}]}
Would make a sphere made of chests containing diamonds and iron ingots with radius 5 centered on a point 5 blocks north of the user's location.
If you make this mod, it will immediately become very popular among creative builders. Even if you only implemented /sphere <x> <y> <z> <radius> <block> [meta] that would make a big splash.
My mods:
Base Metals, Power Advantage, Steam Advantage, Electric Advantage, Minecraft Mineralogy, Dr. Cyano's Lootable Bodies, Dr. Cyano's Wonderful Wands & Wizarding Robes
Try worldedit, it has slightly different syntax, but allows for both hollow and filled spheres, cylinders and domes among others.
If I helped you, please click the green up arrow.
I had been told that WorldEdit had not yet updated to Minecraft 1.8, but I see now that my information is out of date.
Thanks
My mods:
Base Metals, Power Advantage, Steam Advantage, Electric Advantage, Minecraft Mineralogy, Dr. Cyano's Lootable Bodies, Dr. Cyano's Wonderful Wands & Wizarding Robes
I may try to make this anyways because it would help me hit several targets with one arrow: I want to test out intellij idea and I want to make a minecraft forge mod. I would also learn about sphere generation and how it works. (I already know circle voxel generation: check each pixel to see if x^2 + y^2 is roughly radius^2, but I'm not sure how it would with with x y and z)
EDIT: Is the fill mode to switch between hollow and solid? If so, which should be the default?
I think its as simple as x^2+y^2+z^2=r^2 for a sphere (if any of them are 0, you get the full size circle in the plane perpendicular to that axis)
Also, in terms of Pythagoras' theorem in 3 dimensions, that is the formula.
If I helped you, please click the green up arrow.
I understand all the theory of circle generation. The reason I give up is because of the lack of proper forge documentation, it is impossible to do much unless you already have experience with the API.
The BlockPos classes have distance and distance-squared functions, so you don't need calculate it yourself (and I agree that the documentation far from comprehensive).
It is one of the endearing mysteries of the universe that the distance formula is the same no matter how many dimensions you have.
My mods:
Base Metals, Power Advantage, Steam Advantage, Electric Advantage, Minecraft Mineralogy, Dr. Cyano's Lootable Bodies, Dr. Cyano's Wonderful Wands & Wizarding Robes
There are tutorials out there, but the best way of learning is to look at other peoples code and looking through the forge source (call hierarchy in eclipse is your friend).
Once you know what the forge code does, you can work out how to use it. These forums (and the forge ones) are good, as they are full of helpful people who have looked through various parts of the code already.
Apologies for going off topic.
If I helped you, please click the green up arrow.