Skip to content

Commit

Permalink
Added Source
Browse files Browse the repository at this point in the history
  • Loading branch information
Xd-pro authored Jun 29, 2020
1 parent 5833816 commit ef0a501
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 0 deletions.
17 changes: 17 additions & 0 deletions functions/homes.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#bridge-file-version: #13
scoreboard objectives add timer dummy
execute @a ~ ~ ~ scoreboard players add @s timer 1
execute @a[scores={timer=41}] ~ ~ ~ scoreboard players set @s timer 0
replaceitem entity @a[scores={timer=40}] slot.inventory 0 writable_book
gamerule commandblockoutput false
execute @e[type=item,name=sethome] ~~~ execute @p[r=3] ~~~ spawnpoint
execute @e[type=item,name=sethome] ~~~ execute @p[r=3] ~~~ tellraw @s {"rawtext":[{"text":"[§bHOMES§r] §dHome Set. Made By Xd_pro."}]}
execute @e[type=item,name=sethome] ~~~ kill @s
execute @e[type=item,name=home] ~~~ gamerule keepinventory true
execute @e[type=item,name=home] ~~~ gamerule doimmediaterespawn true
execute @e[type=item,name=home] ~~~ kill @p[r=3]
execute @a[scores={timer=40}] ~~~ gamerule keepinventory false
execute @a[scores={timer=40}] ~~~ gamerule keepinventory false
execute @a[scores={timer=40}] ~~~ gamerule doimmediaterespawn false
execute @e[type=item,name=home] ~~~ kill @s
execute @e[type=item,name=home] ~~~ execute @p[r=3] ~~~ tellraw @s {"rawtext":[{"text":"[§bHOMES§r] §dWarped Home. Made By Xd_pro."}]}
29 changes: 29 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"format_version": 2,
"header": {
"name": "pack.name",
"description": "pack.description",
"uuid": "2c04eb0f-38a8-4478-b125-769016fa66dd",
"version": [
1,
0,
0
],
"min_engine_version": [
1,
13,
0
]
},
"modules": [
{
"type": "data",
"uuid": "0e6a2431-a7ab-427e-b345-175a1de8879a",
"version": [
1,
0,
0
]
}
]
}
Binary file added pack_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions texts/en_US.lang
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pack.name=Homes Addon By Xd_pro
pack.description=Use a bed to set your home! §bBy Xd_Pro§r
3 changes: 3 additions & 0 deletions texts/languages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"en_US"
]

0 comments on commit ef0a501

Please sign in to comment.