Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cda94581 committed Oct 19, 2022
0 parents commit 98b71af
Show file tree
Hide file tree
Showing 26 changed files with 583 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bp/blocks/cda001/chunk_loader_block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"format_version": "1.10.0",
"minecraft:block": {
"description": {
"identifier": "cda001:chunk_loader_block",
"register_to_creative_menu": true
},
"components": {
"minecraft:map_color": "#00ff00",
"minecraft:block_light_emission": 0.75
}
}
}
377 changes: 377 additions & 0 deletions bp/entities/cda001/chunk_loader.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,377 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "cda001:chunk_loader",
"is_spawnable": false,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"cda001:instant_despawn": {
"minecraft:skin_id": {
"value": 1
},
"minecraft:instant_despawn": {}
},
"cda001:radius_2": {
"minecraft:skin_id": {
"value": 2
},
"minecraft:interact": {
"interactions": [
{
"on_interact": {
"filters": {
"none_of": {
"test": "is_sneaking",
"subject": "player"
}
},
"event": "cda001:radius_3"
},
"interact_text": "Set Radius to 3 Chunks",
"swing": true,
"play_sounds": "deny"
},
{
"on_interact": {
"filters": {
"all_of": {
"test": "is_sneaking",
"subject": "player"
}
},
"event": "cda001:instant_despawn"
},
"spawn_items": {
"table": "loot_tables/entities/cda001/chunk_loader.json"
},
"interact_text": "Pickup",
"swing": true,
"play_sounds": "beacon.deactivate"
}
]
},
"minecraft:tick_world": {
"never_despawn": true,
"radius": 2
}
},
"cda001:radius_3": {
"minecraft:skin_id": {
"value": 3
},
"minecraft:interact": {
"interactions": [
{
"on_interact": {
"filters": {
"none_of": {
"test": "is_sneaking",
"subject": "player"
}
},
"event": "cda001:radius_4"
},
"interact_text": "Set Radius to 4 Chunks",
"swing": true,
"play_sounds": "deny"
},
{
"on_interact": {
"filters": {
"all_of": {
"test": "is_sneaking",
"subject": "player"
}
},
"event": "cda001:instant_despawn"
},
"spawn_items": {
"table": "loot_tables/entities/cda001/chunk_loader.json"
},
"interact_text": "Pickup",
"swing": true,
"play_sounds": "beacon.deactivate"
}
]
},
"minecraft:tick_world": {
"never_despawn": true,
"radius": 3
}
},
"cda001:radius_4": {
"minecraft:skin_id": {
"value": 4
},
"minecraft:interact": {
"interactions": [
{
"on_interact": {
"filters": {
"none_of": {
"test": "is_sneaking",
"subject": "player"
}
},
"event": "cda001:radius_5"
},
"interact_text": "Set Radius to 5 Chunks",
"swing": true,
"play_sounds": "deny"
},
{
"on_interact": {
"filters": {
"all_of": {
"test": "is_sneaking",
"subject": "player"
}
},
"event": "cda001:instant_despawn"
},
"spawn_items": {
"table": "loot_tables/entities/cda001/chunk_loader.json"
},
"interact_text": "Pickup",
"swing": true,
"play_sounds": "beacon.deactivate"
}
]
},
"minecraft:tick_world": {
"never_despawn": true,
"radius": 4
}
},
"cda001:radius_5": {
"minecraft:skin_id": {
"value": 5
},
"minecraft:interact": {
"interactions": [
{
"on_interact": {
"filters": {
"none_of": {
"test": "is_sneaking",
"subject": "player"
}
},
"event": "cda001:radius_6"
},
"interact_text": "Set Radius to 6 Chunks",
"swing": true,
"play_sounds": "deny"
},
{
"on_interact": {
"filters": {
"all_of": {
"test": "is_sneaking",
"subject": "player"
}
},
"event": "cda001:instant_despawn"
},
"spawn_items": {
"table": "loot_tables/entities/cda001/chunk_loader.json"
},
"interact_text": "Pickup",
"swing": true,
"play_sounds": "beacon.deactivate"
}
]
},
"minecraft:tick_world": {
"never_despawn": true,
"radius": 5
}
},
"cda001:radius_6": {
"minecraft:skin_id": {
"value": 6
},
"minecraft:interact": {
"interactions": [
{
"on_interact": {
"filters": {
"none_of": {
"test": "is_sneaking",
"subject": "player"
}
},
"event": "cda001:radius_2"
},
"interact_text": "Set Radius to 2 Chunks",
"swing": true,
"play_sounds": "deny"
},
{
"on_interact": {
"filters": {
"all_of": {
"test": "is_sneaking",
"subject": "player"
}
},
"event": "cda001:instant_despawn"
},
"spawn_items": {
"table": "loot_tables/entities/cda001/chunk_loader.json"
},
"interact_text": "Pickup",
"swing": true,
"play_sounds": "beacon.deactivate"
}
]
},
"minecraft:tick_world": {
"never_despawn": true,
"radius": 6
}
}
},
"components": {
"minecraft:skin_id": {
"value": 0
},
"minecraft:health": {
"max": 1,
"value": 1
},
"minecraft:damage_sensor": {
"triggers": {
"deals_damage": false
}
},
"minecraft:nameable": {
"always_show": true
},
"minecraft:interact": {
"interactions": [
{
"on_interact": {
"filters": {
"none_of": {
"test": "is_sneaking",
"subject": "player"
}
},
"event": "cda001:radius_2"
},
"interact_text": "Set Radius to 2 Chunks",
"swing": true,
"play_sounds": "beacon.activate"
},
{
"on_interact": {
"filters": {
"all_of": {
"test": "is_sneaking",
"subject": "player"
}
},
"event": "cda001:instant_despawn"
},
"spawn_items": {
"table": "loot_tables/entities/cda001/chunk_loader.json"
},
"interact_text": "Pickup",
"swing": true,
"play_sounds": "beacon.deactivate"
}
]
},
"minecraft:physics": {},
"minecraft:conditional_bandwidth_optimization": {}
},
"events": {
"cda001:instant_despawn": {
"add": {
"component_groups": [
"cda001:instant_despawn"
]
}
},
"cda001:radius_2": {
"add": {
"component_groups": [
"cda001:radius_2"
]
},
"remove": {
"component_groups": [
"cda001:radius_3",
"cda001:radius_4",
"cda001:radius_5",
"cda001:radius_6"
]
}
},
"cda001:radius_3": {
"add": {
"component_groups": [
"cda001:radius_3"
]
},
"remove": {
"component_groups": [
"cda001:radius_2",
"cda001:radius_4",
"cda001:radius_5",
"cda001:radius_6"
]
}
},
"cda001:radius_4": {
"add": {
"component_groups": [
"cda001:radius_4"
]
},
"remove": {
"component_groups": [
"cda001:radius_2",
"cda001:radius_3",
"cda001:radius_5",
"cda001:radius_6"
]
}
},
"cda001:radius_5": {
"add": {
"component_groups": [
"cda001:radius_5"
]
},
"remove": {
"component_groups": [
"cda001:radius_2",
"cda001:radius_3",
"cda001:radius_4",
"cda001:radius_6"
]
}
},
"cda001:radius_6": {
"add": {
"component_groups": [
"cda001:radius_6"
]
},
"remove": {
"component_groups": [
"cda001:radius_2",
"cda001:radius_3",
"cda001:radius_4",
"cda001:radius_5"
]
}
}
}
}
}
3 changes: 3 additions & 0 deletions bp/functions/cda001/chunk_loader.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
execute @e[type=minecraft:player] ~~~ detect ~~-1~ cda001:chunk_loader_block 0 summon cda001:chunk_loader "Chunk Loader"
execute @e[type=minecraft:player] ~~~ detect ~~-1~ cda001:chunk_loader_block 0 playsound beacon.power
execute @e[type=minecraft:player] ~~~ detect ~~-1~ cda001:chunk_loader_block 0 fill ~~-1~~~-1~ air 0 replace cda001:chunk_loader_block
Loading

0 comments on commit 98b71af

Please sign in to comment.