Minecraft Data Packs / Game Mechanic

Stake A Claim - Chunk Ownership (Old Book Version)

  • check_circle Functions
  • 10,404 views, 7 today
  • 692 downloads, 0 today
  • 25
  • 22
  • 39
ZyRail avatar ZyRail
Level 44 : Master Miner
22
Stake A Claim - Chunk Ownership (Old Book Version)
Minecraft v1.16.5 (January 31, 2021)


Check Out Version 2 At
https://www.planetminecraft.com/data-pack/stake-a-claim-version-2-floating-menus/


How To Get The Book
Chat Command
/trigger SAC_Get_Book

Block Protection By Claim
A data pack that will change players into adventure mode if not authorized to edit your claimed area. Soon as they leave the area they will be back into survival mode. You can lock your chests, doors, gates, buttons and more. Your mobs on your claim can also be protected by damage. There are 1,160,290,625 (65 to the power of 5) possible combinations for your ID Key!

How To Claim Land
Put any item with any amount in the first 5 slots at the bottom of your screen (HotBar) then use the book to create your ID Key ["Generate Your ID Key"]. The book will generate an ID Key depending on the amount of items in the stacks. Get some coin by seling crops in your off hand slot, see below. Then use the "Stake A Claim" book to claim some land ["Create A Claim"]. The claim will be one Minecraft chunk (Press F3 + G To See Chunk Borders). Everyone that doesn't have the same ID Key will be stuck in adventure mode on your claim. Give your friends the same combination you used in your ID Key to share a claim ["Reviews ID Key"].

Lock Doors, Chests, Or Other Objects!
You can lock doors, chests, levers, buttons, etc... in your claim with the "Stake A Claim" book. Use ["Lock At Location"] to set protection blocks around your position.

Animal Protection On Your Claim
You can toggle mob protection by the "Stake A Claim" book. Click on the text in the book to toggle protection on or off on any mob within 4 blocks of yourself if you are in your claim. If you hold the book in your main hand then the protected mobs will glow so you can keep track of the ones you have protected.

How To Create Plots
Then use the "Stake A Claim" book to create a plot ["Create Plot"]. The plot will be 1 Minecraft chunk (Press F3 + G To See Chunk Borders)

Claim And Plot Upkeep Cost
Now get out there and work the land PEASANT! Get Coins for selling Wheat, Wheat Seeds, Carrots, Potatoes, Poisonous Potatoes, Beetroots, or Beetroot Seeds. Put the item for sell in your off-hand slot. Coins are required to keep claims and plots active, up to 64 days. Claim owners will receive rent from the plots as players capture them or add more days. I also added the ability to turn your "Coin Balance" into physical "Coins" in your inventory so you can trade with your friends or setup a server shop. If you run out of time on your plot upkeep, it will turn back to an unclaimed plot. If you run out of time on your claim upkeep, it will turn into an unclaimed claim with an 8 day timer left on it. If no one claims it in 8 days, it will get deleted. A claimed plot on a deleted claim will also be deleted so the plot owner should try to claim it before the time runs out.

Rename Claims And Plots
You can rename claims and plots that you own. It is in the claim book under "Renaming Book". Click to receive a writable book if you are in your claim or plot. On the first page you will see {"text":"Name_Here"}. Change the Name_Here to the name you would like the claim or plot to be. Click "Done" not "Sign". Put the writable book, not a signed book, into your offhand slot. In the claim book click on the same command as before that you used to receive the writable book with. If you are within 2 blocks of your claim's or plot's floating text sign, the name will change. This uses JSON text so you could have colored names of claims and plots. minecraft.tools/en/json_text.php is the JSON text generator I use.

Creative Mode
Creative Mode players get a book that has commands on the last page if they run /trigger SAC_Get_Book while in creative mode. The first command "Max Out Timer" is to set the closest claim's timer to almost max, adding 1,179 days to the claim. The second command "Zero Out Timer" is to reset the closest claim's timer is zero. When the timer is set to zero the claim becomes unclaimed allowing others to take ownership. You can also set the cost of claims and upkeep.

To Install
Just place the *.zip file at \AppData\Roaming\.minecraft\saves\*world*\datapacks\ You do not need to extract the files from the zip.

To Uninstall
Remove all claims by hand first by using this command in chat at claim locations in your world.
/execute as @e[​type=minecraft:area_effect_cloud,tag=SAC_Claim_Spot] at @s run fill ~-8 1 ~-8 ~7 1 ~7 minecraft:bedrock replace

Then run the uninstall function
/function claim:uninstall

Non-Licensed
You have the right to share, use, and build upon this data pack for anything you wish, ENJOY!
CompatibilityMinecraft 1.15
toMinecraft 1.16
Tags

19 Update Logs

January 31, 2021 : 01/31/2021 11:50:11 pmJan 31st

Force Load 0,0
Added force load of chunk 0,0 to keep claim borders working if the server owner moves the spawn chunk from that location.

Check Out Version 2 At
https://www.planetminecraft.com/data-pack/stake-a-claim-version-2-floating-menus/
LOAD MORE LOGS

Create an account or sign in to comment.

2
04/13/2021 11:37 am
Level 1 : New Miner
Fahlur
Fahlur avatar
besides plugins for spigot/bukkit/paper being far superior. I think this is a great step for vanilla minecraft. However I have noticed if the owner is at his/her chests that others can access. This is understandable however considering how they are protected.



I have also noticed that with a tnt cannon you can get into someones base, you can if you get the shot right destroy the chests and get the loot. since the lock doesnt lock where blocks use to be around the chest, say below them. I was able to raid a test base with no real issues with a tnt cannon.



However I am unsure if theres any way around this other other than the player taking the initiative to add vanilla protections such as obsidian around where their chests are so that can not happen.



again I love the direction of this and keep up the great work with this datapack. It works on 1.17 as tested so far. unsure if any bugs exist but seems to work so far. I would also like to note this is actually perfect for a vanilla factions environment in its current state.
1
04/16/2021 1:28 am
Level 44 : Master Miner
ZyRail
ZyRail avatar
Please check out version 2 at the top of the description. I'm working out a few bugs at the moment. Version 2 is almost complete.
1
01/08/2021 3:07 am
Level 1 : New Miner
TheMineWolfer
TheMineWolfer avatar
Hi! Im using this datapack for a factions server on Minecraft Realms. I have another datapack for players to claim chunks for their factions, and am using this one to claim the spawn areas, etc to prevent people from griefing/opening chests at spawn. It worked great for a day, but now, whenever I try to trigger a command/create a claim using the book, I get the error "You cannot trigger this objective yet". I have researched this error but there is limited information on how to fix it. I feel I have tried almost everything. I am willing to provide any information required and will actively respond to/attempt suggestions. Thanks for the help!
2
12/15/2020 3:13 am
Level 29 : Expert Dragon
_Jack_93_
_Jack_93_ avatar
Hi man, passing only for a greetings. You, my friend, are the best. Your datapack in my server is wonderfull. I modified it a little, but you know what I did. I'm thinking about inserting an automatic ID generator for who don't know what is an hotbar (trust me, there are a lot of people that don't know what is an hotbar, sadly)
2
01/02/2021 6:25 am
Level 44 : Master Miner
ZyRail
ZyRail avatar
Let me know if you need any big fixes on the modified claims pack.
2
09/26/2020 11:01 pm
Level 1 : New Miner
User3127655G
User3127655G avatar
Hi there Zyrail, thankyou for this datapack, it's so great to have a simple way for people to protect their builds on our server :) We have a bit of a problem though. The four chunks of a claim don't seem to be selectable when creating. Sometimes it selects the chunk you're standing in plus the one in front, sometimes the one behind. We may just be idiots and not using it right, but is there a specific direction we should face/block we should stand on to ensure we claim the chunks we want? Thanks again :) xx
2
12/13/2020 10:49 pm
Level 44 : Master Miner
ZyRail
ZyRail avatar
I updated the data pack to claim one chunk at a time now. Warning pack will not work if you have existing claims. Existing Claims will break!
1
09/10/2020 8:24 pm
Level 1 : New Network
Ladydarksky
Ladydarksky avatar
1.16.3 version not working, placed it in folder and it refuses to list the data pack
1
09/20/2020 1:22 pm
Level 44 : Master Miner
ZyRail
ZyRail avatar
I don't know your experience with installing datapacks so I will start this as a walk through and we will go from there.

You placed stack-a-calim.zip in the datapacks folder in your save game folder?

Sometimes you have to refresh the data pack by disabling and then re-enabling it.
/datapack disable "data pack file"
/datapack enable "data pack file"

If during "create new world" creation menu when adding a data pack in the "Data Packs" menu. You have to make sure that the data pack in the left column under 'Available" is moved over to the right column "Selected"

I don't know if someone else is having trouble as well..
1
07/04/2020 3:15 pmhistory
Level 1 : New Miner
H4ZA4
H4ZA4 avatar
Your datapack causes an item duplication glitch in Economy.... you think u can fix that?
1
07/05/2020 11:07 am
Level 44 : Master Miner
ZyRail
ZyRail avatar
How do you get Economy to duplicate an item? You have the latest version of Economy from June 26th? I can't get mine to duplicate by buying and selling stuff in Economy with Stake A Claim running as well. I tried in my claim and out of my claim. Need more info to fix if there is a problem.
2
05/11/2020 6:32 pmhistory
Level 1 : New Miner
Serniksernik
Serniksernik avatar
hello its me again :) I translated your datapack to polish at my server.

you can check it out here - tho its not official ^^ starts from around 6:20

anyways i'm still thinking - how can people add each other to claims?
I dont really understand how 1 person can do claim - and then invite others to it.
1
05/12/2020 3:00 amhistory
Level 44 : Master Miner
ZyRail
ZyRail avatar
To invite others to your claim, they will have to generate the same ID key as you. Example, if your ID key is [7] [17] [27] [37] [47], have them generate a ID key that has the same numbers. Just review your ID and have them use the same ID as you.
2
05/09/2020 6:11 am
Level 1 : New Miner
Serniksernik
Serniksernik avatar
hi, could you please release version of datapack which will replace messages in centre with BOSSBARS?

I feel like bossbar would be more visible - and current setup tbh it is fighting with my other datapack i use.
2
05/09/2020 3:32 pm
Level 44 : Master Miner
ZyRail
ZyRail avatar
Data pack updated with your request. With boss bars I can't display on screen days left unless I create hundreds of boss bars and assign one to a player if days left matches the boss bar to use. I'm happy with boss bars instead though because it looks a lot cleaner on screen if the chat is full.
1
05/10/2020 2:21 am
Level 1 : New Miner
Serniksernik
Serniksernik avatar
thank you! looks better now - and now its not fighting with my other datapack :)
2
05/02/2020 12:31 pmhistory
Level 23 : Expert Miner
Italorecife
Italorecife avatar
In the video below, you can see that I can create a plot out of claim, and also the system of identifying the player in the chunk area is buggy

Video Here
1
05/02/2020 4:35 pm
Level 44 : Master Miner
ZyRail
ZyRail avatar
You are awesome! Thank you for finding these bugs.
2
05/02/2020 12:28 pmhistory
Level 23 : Expert Miner
Italorecife
Italorecife avatar
In the video below, you can see that the slime protection system is flawed, depending on where I look I can open the door.

Video Here
1
05/03/2020 1:54 am
Level 44 : Master Miner
ZyRail
ZyRail avatar
I released a new update to address this issue. Please let me know if it still not working. I had to make the slimes full size. Thank you for your patience.
2
05/02/2020 2:38 am
Level 23 : Expert Miner
Italorecife
Italorecife avatar
Unfortunately this slime protect system is very bad, and buggy, I highly recommend you change this to something like this datapack:
https://www.planetminecraft.com/data-pack/chest-protection-4507782/

and I also recommend you to remove this system of buying 4 chuncks at once, but rather buying 1 for 1, also changing the plot system for chunk rental.

the bugs I found with slime were, being able to open things depending on where I've been looking, and the bug of buying plot out of claim and the system doesn't correctly identify the player's chunk
1
05/02/2020 5:16 amhistory
Level 44 : Master Miner
ZyRail
ZyRail avatar
I hopefully posted a fix.

I felt that chunks are too small and would require more invisible entities running at once on a large server if there was large claims out there.

I may not understand you completely on correctly identifying the player's chunk. I only show claim borders, not plot/chunk borders. If you would like to see chunk borders hold F3 + g.

Claim owners have build rights to their claim and any owned or non-owned plots inside their claim. Other players don't have build rights in a non-owned plot until they set their ID to the plot.

An owned plot inside your claim will show up has red text but you can still edit that area, you are not the direct owner of the plot so the text is red.
2
05/01/2020 10:26 am
Level 23 : Expert Miner
Italorecife
Italorecife avatar
Another bug, protected Shulker manage to unprotect themselves by pushing the "Protective Slime" upwards
1
05/01/2020 5:16 pm
Level 44 : Master Miner
ZyRail
ZyRail avatar
I created a fix for this, but all the locks will need to be redone as this update will remove all old locked slimes.
2
05/01/2020 5:46 pm
Level 23 : Expert Miner
Italorecife
Italorecife avatar
You could change the chest protection to the same:www.planetminecraft.com/data-pack/chest-protection-4507782/
1
05/02/2020 5:32 am
Level 44 : Master Miner
ZyRail
ZyRail avatar
I will look at the code and if I use it I will give credit to the owner.
2
05/02/2020 10:47 am
Level 23 : Expert Miner
Italorecife
Italorecife avatar
You can do this instead of protecting any block. to be able to protect, doors, chest, shulkers, furnace ...
2
05/01/2020 10:21 am
Level 23 : Expert Miner
Italorecife
Italorecife avatar
I forgot to send, the datapack works perfectly in 1.16
2
05/01/2020 10:18 am
Level 23 : Expert Miner
Italorecife
Italorecife avatar
I found some bugs, same bug with slime preventing the player from opening a door, there are some players who can open it, animals can destroy the area so the protection doesn't serve anything, and I recorded a video of a bug where you can generate infinite slimes because we can kill. note: I translated the datapack for my language. to fix the video bug, change it in unpro_mob.mcfunction and pro_mob.mcfunction in lines 5 and 6 at the end: tag @e [distance = .. 4], to: tag @e [distance = .. 4, tag =! SAC_Lock ]

1
05/01/2020 5:15 pm
Level 44 : Master Miner
ZyRail
ZyRail avatar
Thank you, should now be fixed as suggested.
2
04/30/2020 12:23 pm
Level 1 : New Miner
antisoma
antisoma avatar
Hi ZyRail - thanks for this datapack!

Any plans to allow players with a claim to let their friends/people they trust access it normally? Would really help groups that play together.
1
04/30/2020 1:36 pmhistory
Level 44 : Master Miner
ZyRail
ZyRail avatar
Glad you asked. All your friends can have access if your friends use the same ID Key. Just review your ID and have them use the same ID as you.
2
04/28/2020 3:21 pmhistory
Level 1 : New Miner
User2981823D
User2981823D avatar
Could there be an admin delete specific claim/plot, rather then delete all?
Or even just an admin unlock chest option?

I had to kick a player from realm but I cant unlock their chests, or delete their claim.
1
05/03/2020 1:24 am
Level 44 : Master Miner
ZyRail
ZyRail avatar
Feature is added to the last page of book if you get the book while in creative mode. There are two versions of the book now. You get the creative version if you trigger SAC_Get_Book while in creative mode.
1
04/30/2020 10:51 amhistory
Level 44 : Master Miner
ZyRail
ZyRail avatar
Delete Closest Claim

/execute as @e[​type=minecraft:area_effect_cloud,tag=SAC_Claim_Spot,sort=nearest,limit=1] at @s run fill ~-8 1 ~-8 ~7 1 ~7 minecraft:bedrock replace

Better Yet / Reset Claim ID To Zero

/execute as @e[​tag=SAC_Claim_Timer,limit=1,sort=nearest] run data modify entity @s Age set from entity @s Duration
1
04/13/2020 4:56 pm
Level 1 : New Miner
1n0
1n0 avatar
So i tested this out with a friend and we found the following things:
Keep in mind, we had optifine on. Tested in 1.15.2 and with the optifine preview version.

The Hitbox for locked blocks didnt appear (it did for protected mobs tho) and chests could still be opened after being locked even if it wasnt ones claim. All that happened was, that a slimeblock appeared for a split second and then disappeared. (for locked blocks i assume?) My friend was however set to adventure mode after he went on my claimed land without the correct id key. But he was able to open my locked chests...(Again, there was also no hitbox (this white ghost block) shown for that chest, but when opened, locked would stand on the block it was placed on.)

This did however work in a singleplayer version, where i tested it without optifine. I claimed a land, locked a chest, changed my id key and disbanded ownership for that claim. I couldnt open the chest, even if in creative mode. Also, i was able to see the hitbox, that shows for locked blocks, but only after i protected a nearby mob and only if i wasnt directly looking at the blocks that were locked.

Any idea/tips for the hitbox thing? And how to properly lock chests? Do you have to look at them or crouch on them and lock on feet or......

And what rights do admins/oped people have exactly?
2
04/14/2020 6:28 pmhistory
Level 44 : Master Miner
ZyRail
ZyRail avatar
I'm testing on a dedicated server running on my local system and everything seams to work just fine. Minecraft vanilla version 1.15.2 with vanilla server.

I tested it on optifine as well, and everything works. This is the version I tested on.
preview_OptiFine_1.15.2_HD_U_G1_pre13.jar

Change log previous version, should work if you update OptiFine, maybe.

OptiFine 1.14.4_HD_U_F5
- fixed crash when reloading textures (#3125)
- fixed invisible mobs around the player
- fixed shaders integer texture formats (#3109)
- compatible with Forge 28.1.56
(04.12.2019)

Admins/oped don't have any options yet. I'm still building the pack.
2
04/14/2020 1:21 amhistory
Level 44 : Master Miner
ZyRail
ZyRail avatar
Sounds like things aren't working correctly. I have been rushing to get all the features working correctly. I will work on it some more tomorrow. It is intended to work this way. Stand on top of a chest and lock at feet. Then the invisible slime should spawn over the chest if you are more than 3 blocks away. If you are 3 blocks or closer with the correct claim I'd, then the slime will despawn and you can open your chest.
1
04/17/2020 4:56 pm
Level 1 : New Miner
1n0
1n0 avatar
Thx for the reply.
Planet Minecraft

Website

© 2010 - 2021
www.planetminecraft.com

Welcome