-
Notifications
You must be signed in to change notification settings - Fork 0
steemworlds.sk
Steemworlds.sk is a addon to STEEM.CRAFT which allows you to load and save worlds to the Steem Blockchain using a public Steem node without any third party service.
Comments created by the addon can be modified in the options. But the json metadata of the comments should always look similar to this:
{"app":"STEEM.CRAFT","format":"markdown","world":[{"x":-1,"z":-1,"i":1,"b":"33160294"},{"x":-1,"z":0,"i":1,"b":"33160303"},{"x":-1,"z":-1,"i":2,"b":"33160301"},{"x":0,"z":-1,"i":1,"b":"33160314"},{"x":-1,"z":0,"i":2,"b":"33160308"},{"x":0,"z":0,"i":1,"b":"33160322"},{"x":0,"z":-1,"i":2,"b":"33160316"},{"x":0,"z":0,"i":2,"b":"33160324"}]}
It contains the following data:
app | format | world |
---|---|---|
STEEM.CRAFT | markdown | [{"x":chunk x-coordinate ,"z":chunk z-coordiate ,"i":chunk part id ,"b":"blockid "}] (this part is compressed and base64 encoded) |
The world
data can increase the more and bigger chunks the world has. Due to limitations, the json metadata can't be unlimited in size, this is going to limit the size of the world. Referencing all blocks is limit to a maximum of around 16kb. This is why the referencing data is compressed and stored as base64.
The chunks are not directly stored in the comments, the comments just store a reference to each custom JSON transaction. This allows also bigger worlds to be saved.
A custom JSON transaction from steemworlds is going to look like this:
{"w":"immanuel94","x":0,"z":0,"s":3,"i":3,"data":"X74EH9ZlY2j4ImXydRD3h6SCkXmxHXP/4HmY4ysBIi0szveVRtgRaM+LB2KFDqQE+d3DuiV2sQAwMY40G2sSe+/pjvRddbPQQWdRQmP2uXNjVchhs8Yh423N4O9albqk8n/6cIfjrZYVoGCKVx6luBOq4FScfpBx0QUMEyMyJiOGeC0S1NJWMsERhXTs5ARqnbbHI+yjNFLygXrR9dhUm7YhZQjZFMpim0or1/VaYo6SdmIQbOO0nP757uvVN6u+lkKHSsybfYtIKucUrJtTxqBihfsieX46PvIvrjT9CxlorvlB1+sLdUqtgiG+bqX6+O2l+xtlUwO8VniVwV9VGPcggitF1lSAoliw3TCnore5vCMvwhEtEtFg9MrzY9fRp2J4QiYjKJXEAJS6LO9n4S93deV1nPEksGX2XMMvf3ASw+B+3sidH2yFEUtNMRpKAfXo9/eDeFrIi9PfN+Th4BwMChTmFJCSBlEk3JuH780K/s/oIJ+QyL83Ty4p8iH+CwDMJTFU/v7lWgIdAYPOzWwZqPO2gy0ZoaY0x3SGzELX2EcD3MZhJfI3HGmc4M6I/faEriKlg6BhT6OniJlCx44PGSAcDsbptoZg1zdzkRf1uWbpB463oG0/psH/N4dKojehnzLMfjPt5sACSvTHL+i4kM1B5X/WgiX5npXteHXQM1GB6rAHkvUFa1mgcHuk2FI4ucL8S27qJPyik7ItU0pZJq+MuzGYxhKgvosNxEFVX3caSNf0dxfhX6Bao5j1Ix08xmKbwRezq25qzOqeP2F8xIO+/5LLazvVhuMyl1j0Xlq9WgG/y6AYKOAs9TN+GAzlEYAYb/VDfGFTQCUktrUSghtr1LzeRnfn6J1AXd0O8cL+EkWvcFpcuD+3jMmRyYLdXe6sZgDGzN/rooEAvv8JX/6wGv4zHRi876DI9srzF/4luWtLI8Zp5xa7fKcvv8rwioVEMxErkG82lx4Pafy9u++qA8h86RBjxSIScWeX3WnXbQJDUtVDacpPFkawFag72WeXANYddCWX8Uct4ODEMzWof0udUoeCKDB6zKHMYUIfEi6vBwMX5C82Ne5UQfiw1uPT9KzYDkw6Uez2HmXlQZDWgkQC2t90WdfH9VVhgoULrNiBnLPHV/0YuoiE7dpFkcPLr4Jwh6cnjGpo9ra2nDxaAjRZIMqAg5pSXfdStw9oRFBBIA14q4PbtCUAWGcDUCgrCcgF0DFw2fUI4exRQ46gXo5t0jzNGxcIHAUOAvm2h890AI7va4lLdxl5Wbhg+0n5/dCJ1g37P3nBNlwFzG/4shTHtv/1r38DkCzOtlATAAA="}
It contains the following data:
w | x | z | s | i | data |
---|---|---|---|---|---|
the world name |
x-coordinate of chunk |
z-coordinate of chunk |
number of tx needed for this chunk |
tx part for this chunk |
a part of a compressed and base64 encoded schematic |