#SkyGen gens with ownership

1 messages · Page 1 of 1 (latest)

azure cypress
#

Hydrogen

arctic warren
#

yeah you know what it is tho

hazy wraith
#

Skygens 🥀✌️

arctic warren
#

woop woop

arctic warren
light oriole
#

What the hell

#

How did you do it?

arctic warren
cold pagoda
tight nymph
# light oriole How did you do it?

It's actually quite simple. Use a simple database to store the information. Using custom blocks makes it even easier. Basically, what it does is save the information of who placed the block (using PlayerPlaceBlockAfterEvents) and information about the block, such as its location, to verify during a break. To prevent someone else from breaking it, it only checks who the owner is during the PlayerBreakBlockBeforeEvents event. If it's not the owner, it cancels the event; if it is the owner, it simply doesn't cancel and removes the information from the database.

tight nymph
tight talon
#

u should use diff texture for bottom block

tight nymph
# tight nymph Here's a simple example

This is just to stop anyone else from breaking the generator. The generator itself can be built on top of this, but it’s more complicated and I don't really want to get into it right now.

light oriole
hazy wraith